Class TrivialLog4jLayout

java.lang.Object
org.apache.log4j.Layout
chapters.migrationFromLog4j.TrivialLog4jLayout
All Implemented Interfaces:
org.apache.log4j.spi.OptionHandler

public class TrivialLog4jLayout extends org.apache.log4j.Layout
A very simple log4j layout which formats a logging event by returning the message contained therein.
Author:
Ceki Gülcü
  • Constructor Details

  • Method Details

    • activateOptions

      public void activateOptions()
    • format

      public String format(org.apache.log4j.spi.LoggingEvent loggingEvent)
      Specified by:
      format in class org.apache.log4j.Layout
    • ignoresThrowable

      public boolean ignoresThrowable()
      Specified by:
      ignoresThrowable in class org.apache.log4j.Layout