Uses of Class
org.apache.log4j.Layout
Packages that use Layout
Package
Description
The main log4j package.
This package is used internally.
Package for remote logging.
XML based components.
-
Uses of Layout in org.apache.log4j
Subclasses of Layout in org.apache.log4jModifier and TypeClassDescriptionclass
This class is an enhanced version of org.apache.log4j.PatternLayout which was originally developed as part of the abandoned log4j 1.3 effort and has been available in the extras companion.class
This layout outputs events in a HTML table.class
A flexible layout configurable with pattern string.class
SimpleLayout consists of the level of the log statement, followed by " - " and then the log message itself.class
TTCC layout format consists of time, thread, category and nested diagnostic context information, hence the name.Fields in org.apache.log4j declared as LayoutModifier and TypeFieldDescriptionprotected Layout
AppenderSkeleton.layout
The layout variable does not need to be set if the appender implementation has its own layout.Methods in org.apache.log4j that return LayoutModifier and TypeMethodDescriptionAppender.getLayout()
Returns this appenders layout.AppenderSkeleton.getLayout()
Returns the layout of this appender.Methods in org.apache.log4j with parameters of type LayoutModifier and TypeMethodDescriptionvoid
Set theLayout
for this appender.void
Set the layout for this appender.Constructors in org.apache.log4j with parameters of type LayoutModifierConstructorDescriptionConsoleAppender
(Layout layout) Creates a configured appender.ConsoleAppender
(Layout layout, String target) Creates a configured appender.DailyRollingFileAppender
(Layout layout, String filename, String datePattern) Instantiate aDailyRollingFileAppender
and open the file designated byfilename
.FileAppender
(Layout layout, String filename) Instantiate a FileAppender and open the file designated byfilename
.FileAppender
(Layout layout, String filename, boolean append) Instantiate a FileAppender and open the file designated byfilename
.FileAppender
(Layout layout, String filename, boolean append, boolean bufferedIO, int bufferSize) Instantiate aFileAppender
and open the file designated byfilename
.RollingFileAppender
(Layout layout, String filename) Instantiate a FileAppender and open the file designated byfilename
.RollingFileAppender
(Layout layout, String filename, boolean append) Instantiate a RollingFileAppender and open the file designated byfilename
.WriterAppender
(Layout layout, OutputStream os) Instantiate a WriterAppender and set the output destination to a newOutputStreamWriter
initialized withos
as itsOutputStream
.WriterAppender
(Layout layout, Writer writer) Instantiate a WriterAppender and set the output destination towriter
. -
Uses of Layout in org.apache.log4j.helpers
Subclasses of Layout in org.apache.log4j.helpersModifier and TypeClassDescriptionclass
This abstract layout takes care of all the date related options and formatting work. -
Uses of Layout in org.apache.log4j.net
Constructors in org.apache.log4j.net with parameters of type LayoutModifierConstructorDescriptionSyslogAppender
(Layout layout, int syslogFacility) SyslogAppender
(Layout layout, String syslogHost, int syslogFacility) -
Uses of Layout in org.apache.log4j.xml
Subclasses of Layout in org.apache.log4j.xmlModifier and TypeClassDescriptionclass
The output of the XMLLayout consists of a series of log4j:event elements as defined in the log4j.dtd.Methods in org.apache.log4j.xml that return LayoutModifier and TypeMethodDescriptionprotected Layout
DOMConfigurator.parseLayout
(Element layout_element) Used internally to parse a layout element.