Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.13.2, 2.13.3
-
None
-
None
Description
I create LogEvent where message is of type MapMessage (key-value pairs).
I send this log event to SocketAppender by JsonLayout.
The json created in attached file.
I tried also setObjectMessageAsJsonObject(true) - same result.
On ServerSocket side I want to parse/deserialize this json string to LogEvent and log it to File Appender:
LogEvent logEvent = new JsonLogEventParser().parseFrom(line);
Then parseFrom() build the LogEvent, message object create of type SimpleMessage and not MapMessage. Then it comes to resolving %map pattern in MapPatternConverter.format() - does nothing and returns.