Package chapters.migrationFromLog4j
Class TrivialLog4jLayout
java.lang.Object
org.apache.log4j.Layout
chapters.migrationFromLog4j.TrivialLog4jLayout
- All Implemented Interfaces:
org.apache.log4j.spi.OptionHandler
A very simple log4j layout which formats a logging event
by returning the message contained therein.
- Author:
- Ceki Gülcü
-
Field Summary
Fields inherited from class org.apache.log4j.Layout
LINE_SEP, LINE_SEP_LEN
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
format
(org.apache.log4j.spi.LoggingEvent loggingEvent) boolean
Methods inherited from class org.apache.log4j.Layout
getContentType, getFooter, getHeader
-
Constructor Details
-
TrivialLog4jLayout
public TrivialLog4jLayout()
-
-
Method Details
-
activateOptions
-
format
- Specified by:
format
in classorg.apache.log4j.Layout
-
ignoresThrowable
- Specified by:
ignoresThrowable
in classorg.apache.log4j.Layout
-