-
Notifications
You must be signed in to change notification settings - Fork 170
Suro JsonLog4jFormatter
Jae Hyeon Bae edited this page Nov 21, 2013
·
2 revisions
JsonLog4jFormatter is getting Java Map object from LoggingEvent.getMessage(). If you want to use JsonLog4jFormatter, you should set up Log4j to put Java Map to LoggingEvent instead of String.
This will populate the following additional fields to JSON string.
- ts: Timestamp when the log is collected on JsonLog4jFormatter
- datetime: Formatted date time string
- logLevel: equals to LoggingEvent.getLogLevel()
- class: equals to LoggingEvent.getLoggerName()