[jira] [Commented] (LOG4J2-908) JSONLayout doesn't add a comma between log events

2015-01-05 Thread Patrick Flaherty (JIRA)
[ https://issues.apache.org/jira/browse/LOG4J2-908?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14265357#comment-14265357 ] Patrick Flaherty commented on LOG4J2-908: - I sent an email to the log4j list... H

RE: API to read a log file to a Collection of LogEvent?

2015-01-05 Thread Gary Gregory
You can use a different layout and log to an additional appender which can easily be read by log4j like Serialized. Gary  Original message From: Behrooz Nobakht Date:01/05/2015 06:01 (GMT-05:00) To: [email protected] Cc: Subject: API to read a log file to a Col

API to read a log file to a Collection of LogEvent?

2015-01-05 Thread Behrooz Nobakht
Hi, For example, I have an audit log file with certain structure (pattern layout). I want to replay the log that can be turned into certain domain objects. I am interested to read the log file knowing the pattern layout into a Collection or Stream of LogEvent using Apache Log4j 2? I understand th