Class LoggingEventConverter


  • public class LoggingEventConverter
    extends Object
    Converts logging events to a readable log format.
    Since:
    2.0.0
    Author:
    Rutger Lubbers
    • Constructor Detail

      • LoggingEventConverter

        public LoggingEventConverter()
        Constructor for normal usage.
      • LoggingEventConverter

        public LoggingEventConverter​(IThrowableProxyConverter iThrowableProxyConverter)
        Constructor for unit testing.
        Parameters:
        iThrowableProxyConverter - the converter to be used (e.g. a mock).
    • Method Detail

      • convert

        public String convert​(ch.qos.logback.classic.spi.LoggingEvent event)
        Converts the LoggingEvent to a loggable string.
        Parameters:
        event - the non-null event.
        Returns:
        a nicely formatted String.