Class TrivialLogbackLayout

All Implemented Interfaces:
Layout<ILoggingEvent>, ContextAware, LifeCycle

A very simple logback-classic layout which formats a logging event by returning the message contained therein.
Author:
Ceki Gülcü
  • Constructor Details

  • Method Details

    • doLayout

      public String doLayout(ILoggingEvent loggingEvent)
      Description copied from interface: Layout
      Transform an event (of type Object) and return it as a String after appropriate formatting.

      Taking in an object and returning a String is the least sophisticated way of formatting events. However, it is remarkably CPU-effective.

      Parameters:
      loggingEvent - The event to format
      Returns:
      the event formatted as a String