, , -, Log4j (, %-5p [%t]: %m%n) , , .
Essentially, I'm looking for the flip side of the Layout.format(LoggingEvent)Layout base class method for Log4j. This method creates a string that is stored in a log file, so the reverse operation can parse this file and create LoggingEvent objects or something similar (something like a deserialization procedure).
Thank!
EDIT: Converting is simple just by doing
LogFilePatternLayoutBuilder.getLogFormatFromPatternLayout(conversionPattern);
through the Chainsaw class org.apache.log4j.chainsaw.LogFilePatternLayoutBuilder.
source
share