Class JsonLogEventFormatter

  • All Implemented Interfaces:
    Function<LogEvent,​String>, LogEventFormatter
    Direct Known Subclasses:
    ConsoleJsonLogEventFormatter

    public class JsonLogEventFormatter
    extends Object
    implements LogEventFormatter
    Used to format a LogEvent as JSON for stdout or network observers. Example configuration:
     observer.foo.formatter=JsonLogEventFormatter
     observer.foo.formatter.excludedMdcKeys=secret,ipAddress
     observer.foo.formatter.properties.environment=staging
     
    Author:
    Johannes Brodwall