2

Is there anyway to parse log4j files in your source code directly? I know that there are software's (chainsaw, otroslogviewer) that help you view them outside however looking for something that will help you do it within java code (and maybe return a Log object or something for every entry parsed?)

KrzyH
  • 4,256
  • 1
  • 31
  • 43
noi.m
  • 3,070
  • 5
  • 34
  • 57
  • 2
    Check answer on topic Parsing Log4j Layouts from Log Files: http://stackoverflow.com/questions/6623974/parsing-log4j-layouts-from-log-files/6624135#6624135 – KrzyH Sep 10 '12 at 16:26

1 Answers1

1

log4j's LogFilePatternReceiver can do that

Scott
  • 1,728
  • 11
  • 11