Hi I tried using otroslogviewer for viewing my application logs.But everytime I try loading the logs otroslogviewer gives an error message regarding the log4j custom pattern parsing
my log4j pattern property is
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
log4j.appender.FILE.layout.ConversionPattern=%-5p: %d{dd-MMM-yyyy HH:mm:ss,SSS}: %c.%M(): %m%n
Can anyone tell me the correct pattern format which I need to specify in my pattern property file in otroslogviewer
If your logs looks like:
You can use following log pattern (Menu Tools-> Show log4j pattern parser editor):
Unfortunately, class and method is separated by '.' and log viewer is not able to detect which dot in
com.tcs.sgv.acl.service.AccessControlServiceImpl.getAllUserELement()
is separating fieldCLASS
fromMETHOD
.