meydrew / otroslogviewer

Automatically exported from code.google.com/p/otroslogviewer
0 stars 0 forks source link

Log4jPatternLayout help #329

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
-------------
Attention!

If you want to report issue for file browsing, open it in OtrosVfsBrowser
project: http://code.google.com/p/otrosvfsbrowser/

-------------
What steps will reproduce the problem?
Could someone help me with this pattern?

log4j.appender.root.layout.ConversionPattern? = %d{yyyy-MM-dd | HH:mm:ss,SSS} | 
%-5.5p | %-70.70t | %m%n

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by domoalig...@gmail.com on 9 Feb 2015 at 7:11

GoogleCodeExporter commented 9 years ago
It looks like this date format (with pipe) can't be parsed. Pipe is special 
character in regular expression. Log4j pattern parser is using regex and pipe 
have to be escaped.

Original comment by otros.sy...@gmail.com on 9 Feb 2015 at 9:38

GoogleCodeExporter commented 9 years ago
So how do I escape the character in the pattern file?

Original comment by domoalig...@gmail.com on 9 Feb 2015 at 10:45