Package | Description |
---|---|
org.apache.log4j |
The main log4j package.
|
org.apache.log4j.helpers |
This package is used internally.
|
org.apache.log4j.jmx |
This package lets you manage log4j settings using JMX.
|
org.apache.log4j.net |
Package for remote logging.
|
org.apache.log4j.nt |
Package for NT event logging.
|
org.apache.log4j.xml |
XML based components.
|
Modifier and Type | Class | Description |
---|---|---|
class |
EnhancedPatternLayout |
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 |
HTMLLayout |
This layout outputs events in a HTML table.
|
class |
PatternLayout |
A flexible layout configurable with pattern string.
|
class |
SimpleLayout |
SimpleLayout consists of the level of the log statement,
followed by " - " and then the log message itself.
|
class |
TTCCLayout |
TTCC layout format consists of time, thread, category and nested
diagnostic context information, hence the name.
|
Modifier and Type | Field | Description |
---|---|---|
protected Layout |
AppenderSkeleton.layout |
The layout variable does not need to be set if the appender
implementation has its own layout.
|
Modifier and Type | Method | Description |
---|---|---|
Layout |
Appender.getLayout() |
Returns this appenders layout.
|
Layout |
AppenderSkeleton.getLayout() |
Returns the layout of this appender.
|
Modifier and Type | Method | Description |
---|---|---|
void |
Appender.setLayout(Layout layout) |
Set the
Layout for this appender. |
void |
AppenderSkeleton.setLayout(Layout layout) |
Set the layout for this appender.
|
Constructor | Description |
---|---|
ConsoleAppender(Layout layout) |
Creates a configured appender.
|
ConsoleAppender(Layout layout,
java.lang.String target) |
Creates a configured appender.
|
DailyRollingFileAppender(Layout layout,
java.lang.String filename,
java.lang.String datePattern) |
Instantiate a
DailyRollingFileAppender and open the
file designated by filename . |
FileAppender(Layout layout,
java.lang.String filename) |
Instantiate a FileAppender and open the file designated by
filename . |
FileAppender(Layout layout,
java.lang.String filename,
boolean append) |
Instantiate a FileAppender and open the file designated by
filename . |
FileAppender(Layout layout,
java.lang.String filename,
boolean append,
boolean bufferedIO,
int bufferSize) |
Instantiate a
FileAppender and open the file
designated by filename . |
RollingFileAppender(Layout layout,
java.lang.String filename) |
Instantiate a FileAppender and open the file designated by
filename . |
RollingFileAppender(Layout layout,
java.lang.String filename,
boolean append) |
Instantiate a RollingFileAppender and open the file designated by
filename . |
WriterAppender(Layout layout,
java.io.OutputStream os) |
Instantiate a WriterAppender and set the output destination to a
new
OutputStreamWriter initialized with os
as its OutputStream . |
WriterAppender(Layout layout,
java.io.Writer writer) |
Instantiate a WriterAppender and set the output destination to
writer . |
Modifier and Type | Class | Description |
---|---|---|
class |
DateLayout |
This abstract layout takes care of all the date related options and
formatting work.
|
Constructor | Description |
---|---|
LayoutDynamicMBean(Layout layout) |
Constructor | Description |
---|---|
SyslogAppender(Layout layout,
int syslogFacility) |
|
SyslogAppender(Layout layout,
java.lang.String syslogHost,
int syslogFacility) |
Constructor | Description |
---|---|
NTEventLogAppender(java.lang.String server,
java.lang.String source,
Layout layout) |
|
NTEventLogAppender(java.lang.String source,
Layout layout) |
|
NTEventLogAppender(Layout layout) |
Modifier and Type | Class | Description |
---|---|---|
class |
XMLLayout |
The output of the XMLLayout consists of a series of log4j:event
elements as defined in the log4j.dtd.
|
Modifier and Type | Method | Description |
---|---|---|
protected Layout |
DOMConfigurator.parseLayout(org.w3c.dom.Element layout_element) |
Used internally to parse a layout element.
|
Copyright 2000-2007 Apache Software Foundation.