Package chapters.migrationFromLog4j
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.LayoutA very simple log4j layout which formats a logging event by returning the message contained therein.
-
-
Constructor Summary
Constructors Constructor Description TrivialLog4jLayout()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivateOptions()java.lang.Stringformat(org.apache.log4j.spi.LoggingEvent loggingEvent)booleanignoresThrowable()
-
-
-
Method Detail
-
activateOptions
public void activateOptions()
-
format
public java.lang.String format(org.apache.log4j.spi.LoggingEvent loggingEvent)
- Specified by:
formatin classorg.apache.log4j.Layout
-
ignoresThrowable
public boolean ignoresThrowable()
- Specified by:
ignoresThrowablein classorg.apache.log4j.Layout
-
-