Package | Description |
---|---|
org.apache.log4j |
Log4j 1.x compatibility layer.
|
org.apache.log4j.bridge | |
org.apache.log4j.helpers |
Log4j 1.x compatibility layer.
|
org.apache.log4j.spi |
Log4j 1.x compatibility layer.
|
org.apache.log4j.varia |
Modifier and Type | Field and Description |
---|---|
static Level |
Level.ALL
The
ALL has the lowest possible rank and is intended to
turn on all logging. |
static Level |
Level.DEBUG
The
DEBUG Level designates fine-grained
informational events that are most useful to debug an
application. |
static Level |
Level.ERROR
The
ERROR level designates error events that
might still allow the application to continue running. |
static Level |
Level.FATAL
The
FATAL level designates very severe error
events that will presumably lead the application to abort. |
static Level |
Level.INFO
The
INFO level designates informational messages
that highlight the progress of the application at coarse-grained
level. |
protected Level |
Category.level
The assigned level of this category.
|
static Level |
Level.OFF
The
OFF has the highest possible rank and is
intended to turn off logging. |
static Level |
Level.TRACE
The
TRACE Level designates finer-grained
informational events than the DEBUG level. |
static Level |
Level.WARN
The
WARN level designates potentially harmful situations. |
Modifier and Type | Method and Description |
---|---|
Level |
Category.getEffectiveLevel() |
Level |
Category.getLevel() |
Level |
Category.getPriority() |
Level |
Hierarchy.getThreshold()
Gets a
Level representation of the enable state. |
static Level |
Level.toLevel(int val)
Convert an integer passed as argument to a level.
|
static Level |
Level.toLevel(int val,
Level defaultLevel)
Convert an integer passed as argument to a level.
|
static Level |
Level.toLevel(String sArg)
Convert the string passed as argument to a level.
|
static Level |
Level.toLevel(String sArg,
Level defaultLevel)
Convert the string passed as argument to a level.
|
Modifier and Type | Method and Description |
---|---|
void |
Category.setLevel(Level level) |
void |
Hierarchy.setThreshold(Level level)
Enable logging for logging requests with level
l or higher. |
static Level |
Level.toLevel(int val,
Level defaultLevel)
Convert an integer passed as argument to a level.
|
static Level |
Level.toLevel(String sArg,
Level defaultLevel)
Convert the string passed as argument to a level.
|
Modifier and Type | Method and Description |
---|---|
Level |
LogEventAdapter.getLevel()
Return the level of this event.
|
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 | Method and Description |
---|---|
static Level |
OptionConverter.convertLevel(Level level) |
static Level |
UtilLoggingLevel.toLevel(int val)
Gets level matching numeric value.
|
static Level |
UtilLoggingLevel.toLevel(String s)
Get level with specified symbolic name.
|
static Level |
OptionConverter.toLevel(String value,
Level defaultValue)
Converts a standard or custom priority level to a Level
object.
|
static Level |
UtilLoggingLevel.toLevel(String sArg,
Level defaultLevel)
Get level with specified symbolic name.
|
Modifier and Type | Method and Description |
---|---|
static Level |
OptionConverter.convertLevel(Level level) |
static Level |
OptionConverter.toLevel(String value,
Level defaultValue)
Converts a standard or custom priority level to a Level
object.
|
static Level |
UtilLoggingLevel.toLevel(String sArg,
Level defaultLevel)
Get level with specified symbolic name.
|
Modifier and Type | Method and Description |
---|---|
Level |
RootLogger.getChainedLevel()
Gets the assigned level value without walking the logger hierarchy.
|
Level |
NOPLogger.getEffectiveLevel() |
Level |
LoggingEvent.getLevel()
Return the level of this event.
|
Level |
NOPLoggerRepository.getThreshold()
Get the repository-wide threshold.
|
Level |
LoggerRepository.getThreshold()
Get the repository-wide threshold.
|
Modifier and Type | Method and Description |
---|---|
void |
RootLogger.setLevel(Level level)
Sets the log level.
|
void |
NOPLogger.setLevel(Level level) |
void |
NOPLoggerRepository.setThreshold(Level level)
Set the repository-wide threshold.
|
void |
LoggerRepository.setThreshold(Level level)
Set the repository-wide threshold.
|
Constructor and Description |
---|
LoggingEvent(String fqnOfCategoryClass,
Category logger,
long timeStamp,
Level level,
Object message,
String threadName,
ThrowableInformation throwable,
String ndc,
LocationInfo info,
Map properties)
Create new instance.
|
RootLogger(Level level)
The root logger names itself as "root".
|
Modifier and Type | Method and Description |
---|---|
Level |
LevelRangeFilter.getLevelMax()
Get the value of the
LevelMax option. |
Level |
LevelRangeFilter.getLevelMin()
Get the value of the
LevelMin option. |
Modifier and Type | Method and Description |
---|---|
void |
LevelRangeFilter.setLevelMax(Level levelMax)
Set the
LevelMax option. |
void |
LevelRangeFilter.setLevelMin(Level levelMin)
Set the
LevelMin option. |
Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.