[
https://issues.apache.org/jira/browse/LOG4J2-908?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15076520#comment-15076520
]
Konstantinos Liakos commented on LOG4J2-908:
--------------------------------------------
Just tested it, and it seems there is an issue. The first 2 log events are not
seperated by comma, while the rest do.
The log file looks like this:
{code}
[
{
"timeMillis" : 1451741740683,
"thread" : "qtp28648256-15",
"level" : "ERROR",
"message" : "test",
"endOfBatch" : false,
"loggerFqcn" : "org.apache.logging.log4j.spi.AbstractLogger"
}
{
"timeMillis" : 1451741741605,
"thread" : "qtp28648256-16",
"level" : "ERROR",
"message" : "test",
"endOfBatch" : false,
"loggerFqcn" : "org.apache.logging.log4j.spi.AbstractLogger"
}
, {
"timeMillis" : 1451741744133,
"thread" : "qtp28648256-18",
"level" : "ERROR",
"message" : "test",
"endOfBatch" : false,
"loggerFqcn" : "org.apache.logging.log4j.spi.AbstractLogger"
}
, {
"timeMillis" : 1451741744452,
"thread" : "qtp28648256-21",
"level" : "ERROR",
"message" : "test",
"endOfBatch" : false,
"loggerFqcn" : "org.apache.logging.log4j.spi.AbstractLogger"
}
, {
"timeMillis" : 1451741744495,
"thread" : "qtp28648256-14",
"level" : "ERROR",
"message" : "test",
"endOfBatch" : false,
"loggerFqcn" : "org.apache.logging.log4j.spi.AbstractLogger"
}
, {
"timeMillis" : 1451741744677,
"thread" : "qtp28648256-17",
"level" : "ERROR",
"message" : "test",
"endOfBatch" : false,
"loggerFqcn" : "org.apache.logging.log4j.spi.AbstractLogger"
}
, {
"timeMillis" : 1451741744856,
"thread" : "qtp28648256-15",
"level" : "ERROR",
"message" : "test",
"endOfBatch" : false,
"loggerFqcn" : "org.apache.logging.log4j.spi.AbstractLogger"
}
, {
"timeMillis" : 1451741745017,
"thread" : "qtp28648256-16",
"level" : "ERROR",
"message" : "test",
"endOfBatch" : false,
"loggerFqcn" : "org.apache.logging.log4j.spi.AbstractLogger"
}
, {
"timeMillis" : 1451741745203,
"thread" : "qtp28648256-18",
"level" : "ERROR",
"message" : "test",
"endOfBatch" : false,
"loggerFqcn" : "org.apache.logging.log4j.spi.AbstractLogger"
}
, {
"timeMillis" : 1451741745391,
"thread" : "qtp28648256-21",
"level" : "ERROR",
"message" : "test",
"endOfBatch" : false,
"loggerFqcn" : "org.apache.logging.log4j.spi.AbstractLogger"
}
, {
"timeMillis" : 1451741745575,
"thread" : "qtp28648256-14",
"level" : "ERROR",
"message" : "test",
"endOfBatch" : false,
"loggerFqcn" : "org.apache.logging.log4j.spi.AbstractLogger"
}
{code}
> JSONLayout doesn't add a comma between log events
> -------------------------------------------------
>
> Key: LOG4J2-908
> URL: https://issues.apache.org/jira/browse/LOG4J2-908
> Project: Log4j 2
> Issue Type: Bug
> Components: Layouts
> Affects Versions: 2.1
> Reporter: Konstantinos Liakos
> Assignee: Gary Gregory
> Fix For: 2.5.1
>
>
> JSONLayout doesn't output a comma (,) between the log events. This makes it
> quite difficult to read and deserialize the log files.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]