Package | Description |
---|---|
org.apache.log4j |
The main log4j package.
|
org.apache.log4j.chainsaw |
Chainsaw is a GUI log viewer and filter for the log4j
package.
|
org.apache.log4j.helpers |
This package is used internally.
|
org.apache.log4j.pattern |
Provides classes implementing format specifiers in conversion patterns.
|
org.apache.log4j.spi |
Contains part of the System Programming Interface (SPI) needed to
extend log4j.
|
Modifier and Type | Class and Description |
---|---|
class |
Level
Defines the minimum set of levels recognized by the system, that is
OFF , FATAL , ERROR ,
WARN , INFO DEBUG and
ALL . |
Modifier and Type | Field and Description |
---|---|
static Priority |
Priority.DEBUG
Deprecated.
Use
Level.DEBUG instead. |
static Priority |
Priority.ERROR
Deprecated.
Use
Level.ERROR instead. |
static Priority |
Priority.FATAL
Deprecated.
Use
Level.FATAL instead. |
static Priority |
Priority.INFO
Deprecated.
Use
Level.INFO instead. |
protected Priority |
AppenderSkeleton.threshold
There is no level threshold filtering by default.
|
static Priority |
Priority.WARN
Deprecated.
Use
Level.WARN instead. |
Modifier and Type | Method and Description |
---|---|
static Priority[] |
Priority.getAllPossiblePriorities()
Deprecated.
This method will be removed with no replacement.
|
Priority |
Category.getChainedPriority()
Deprecated.
Please use the the
Category.getEffectiveLevel() method
instead. |
Priority |
AppenderSkeleton.getThreshold()
Returns this appenders threshold level.
|
static Priority |
Priority.toPriority(int val)
Deprecated.
Please use the
Level.toLevel(int) method instead. |
static Priority |
Priority.toPriority(int val,
Priority defaultPriority)
Deprecated.
Please use the
Level.toLevel(int, Level) method instead. |
static Priority |
Priority.toPriority(java.lang.String sArg)
Deprecated.
Please use the
Level.toLevel(String) method instead. |
static Priority |
Priority.toPriority(java.lang.String sArg,
Priority defaultPriority)
Deprecated.
Please use the
Level.toLevel(String, Level) method instead. |
Modifier and Type | Method and Description |
---|---|
protected void |
Category.forcedLog(java.lang.String fqcn,
Priority level,
java.lang.Object message,
java.lang.Throwable t)
This method creates a new logging event and logs the event
without further checks.
|
boolean |
AppenderSkeleton.isAsSevereAsThreshold(Priority priority)
Check whether the message level is below the appender's
threshold.
|
boolean |
Category.isEnabledFor(Priority level)
Check whether this category is enabled for a given
Level passed as parameter. |
boolean |
Priority.isGreaterOrEqual(Priority r)
Returns
true if this level has a higher or equal
level than the level passed as argument, false
otherwise. |
void |
Category.l7dlog(Priority priority,
java.lang.String key,
java.lang.Object[] params,
java.lang.Throwable t)
Log a localized and parameterized message.
|
void |
Category.l7dlog(Priority priority,
java.lang.String key,
java.lang.Throwable t)
Log a localized message.
|
void |
Category.log(Priority priority,
java.lang.Object message)
This generic form is intended to be used by wrappers.
|
void |
Category.log(Priority priority,
java.lang.Object message,
java.lang.Throwable t)
This generic form is intended to be used by wrappers.
|
void |
Category.log(java.lang.String callerFQCN,
Priority level,
java.lang.Object message,
java.lang.Throwable t)
This is the most generic printing method.
|
void |
Category.setPriority(Priority priority)
Deprecated.
Please use
Category.setLevel(org.apache.log4j.Level) instead. |
void |
AppenderSkeleton.setThreshold(Priority threshold)
Set the threshold level.
|
static Priority |
Priority.toPriority(int val,
Priority defaultPriority)
Deprecated.
Please use the
Level.toLevel(int, Level) method instead. |
static Priority |
Priority.toPriority(java.lang.String sArg,
Priority defaultPriority)
Deprecated.
Please use the
Level.toLevel(String, Level) method instead. |
Modifier and Type | Field and Description |
---|---|
private Priority |
EventDetails.mPriority
the priority of the event
|
private Priority |
MyTableModel.mPriorityFilter
filter for the priority
|
Modifier and Type | Method and Description |
---|---|
(package private) Priority |
EventDetails.getPriority() |
Modifier and Type | Method and Description |
---|---|
void |
MyTableModel.setPriorityFilter(Priority aPriority)
Sets the priority to filter events on.
|
Constructor and Description |
---|
EventDetails(long aTimeStamp,
Priority aPriority,
java.lang.String aCategoryName,
java.lang.String aNDC,
java.lang.String aThreadName,
java.lang.String aMessage,
java.lang.String[] aThrowableStrRep,
java.lang.String aLocationDetails)
Creates a new
EventDetails instance. |
Modifier and Type | Class and Description |
---|---|
class |
UtilLoggingLevel
An extension of the Level class that provides support for java.util.logging
Levels.
|
Modifier and Type | Field and Description |
---|---|
Priority |
LogEvent.level
Deprecated.
This field will be marked as private in future
releases. Please do not access it directly. Use the
LogEvent.getLevel() method instead. |
Constructor and Description |
---|
LogEvent(java.lang.String fqnOfCategoryClass,
Category logger,
long timeStamp,
Priority level,
java.lang.Object message,
java.lang.Throwable throwable)
Instantiate a LoggingEvent from the supplied parameters.
|
LogEvent(java.lang.String fqnOfCategoryClass,
Category logger,
Priority level,
java.lang.Object message,
java.lang.Throwable throwable)
Instantiate a LoggingEvent from the supplied parameters.
|
Modifier and Type | Field and Description |
---|---|
Priority |
LoggingEvent.level
Deprecated.
This field will be marked as private in future
releases. Please do not access it directly. Use the
LoggingEvent.getLevel() method instead. |
Modifier and Type | Method and Description |
---|---|
Priority |
NOPLogger.getChainedPriority() |
Modifier and Type | Method and Description |
---|---|
boolean |
NOPLogger.isEnabledFor(Priority level)
Check whether this category is enabled for a given
Level passed as parameter. |
void |
NOPLogger.l7dlog(Priority priority,
java.lang.String key,
java.lang.Object[] params,
java.lang.Throwable t)
Log a localized and parameterized message.
|
void |
NOPLogger.l7dlog(Priority priority,
java.lang.String key,
java.lang.Throwable t)
Log a localized message.
|
void |
NOPLogger.log(Priority priority,
java.lang.Object message)
This generic form is intended to be used by wrappers.
|
void |
NOPLogger.log(Priority priority,
java.lang.Object message,
java.lang.Throwable t)
This generic form is intended to be used by wrappers.
|
void |
NOPLogger.log(java.lang.String callerFQCN,
Priority level,
java.lang.Object message,
java.lang.Throwable t)
This is the most generic printing method.
|
void |
NOPLogger.setPriority(Priority priority)
Set the level of this Category.
|
Constructor and Description |
---|
LoggingEvent(java.lang.String fqnOfCategoryClass,
Category logger,
long timeStamp,
Priority level,
java.lang.Object message,
java.lang.Throwable throwable)
Instantiate a LoggingEvent from the supplied parameters.
|
LoggingEvent(java.lang.String fqnOfCategoryClass,
Category logger,
Priority level,
java.lang.Object message,
java.lang.Throwable throwable)
Instantiate a LoggingEvent from the supplied parameters.
|