log4j custom pattern in otroslogviewer -
Hi I use otroslogviewer to view logs.But my application logs an error message about log ojtoslogviewer log4j Attempts to load tried to parse custom pattern
my log4j pattern is property
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 someone tell me the correct pattern format, which I have in otroslovak Must be specified in ) If your logs look like:
info: 11 10-Oct-2014: 30: 09,178: com.tcs.sgv.acl.service.AccessControlServiceImpl.getAllUserELement (): Global service loginPost In --- 100,016 Information: 10-Oct, 2014 11: 30: 09,179: com.tcs.sgv.acl.service.AccessControlServiceImpl.getAllUserELement (): userId ... 103,002 info: 10 Oct, 2014 11:30 to 30: 09,180 : Com.tcs.sgv.acl.service.AccessCo NtrolServiceImpl.getAllUserELement (): Locale ... en_US one ???? You can use the following log pattern (Menu Tools-> Lodge 4j Pattern Pars Editor Show):
Type = Lodge 4J Pattern = LEVEL: TIMESTAMP class: Message DateFormat = dd-MMM-yyyy HH: mm: '.' Ss, sss name = stackoverflow example charset = UTF-8 Unfortunately, the class and method are separated and log viewer method to detect which dot enabled < Code> com.tcs.sgv.acl.service.AccessControlServiceImpl.getAllUserELement () is different area class not .
Comments
Post a Comment