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.Layout
A 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 void
activateOptions()
java.lang.String
format(org.apache.log4j.spi.LoggingEvent loggingEvent)
boolean
ignoresThrowable()
-
-
-
Method Detail
-
activateOptions
public void activateOptions()
-
format
public java.lang.String format(org.apache.log4j.spi.LoggingEvent loggingEvent)
- Specified by:
format
in classorg.apache.log4j.Layout
-
ignoresThrowable
public boolean ignoresThrowable()
- Specified by:
ignoresThrowable
in classorg.apache.log4j.Layout
-
-