Package | Description |
---|---|
org.apache.log4j |
The main 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.
|
org.apache.log4j.varia |
Contains various appenders, filters and other odds and ends.
|
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 |
JBossLevelMapping.DEFAULT_LOG4J_LEVEL |
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 |
static Level |
Level.OFF
The
OFF has the highest possible rank and is
intended to turn off logging. |
protected static Level |
LogXF.TRACE
Trace level.
|
static Level |
Level.TRACE
The TRACE Level designates finer-grained
informational events than the DEBUG
|
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()
Deprecated.
|
static Level |
JBossLevelMapping.getPriorityFor(int level)
Finds the
log4j level for the level . |
static Level |
JBossLevelMapping.getPriorityFor(Level level)
Finds the
log4j level for the level . |
Level |
Hierarchy.getThreshold() |
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 |
---|---|
static void |
LogSF.log(Logger logger,
Level level,
String pattern,
boolean param1)
Log a parameterized message at specified level.
|
static void |
LogMF.log(Logger logger,
Level level,
String pattern,
boolean param1)
Log a parameterized message at specified level.
|
static void |
LogSF.log(Logger logger,
Level level,
String pattern,
byte param1)
Log a parameterized message at specified level.
|
static void |
LogMF.log(Logger logger,
Level level,
String pattern,
byte param1)
Log a parameterized message at specified level.
|
static void |
LogSF.log(Logger logger,
Level level,
String pattern,
char param1)
Log a parameterized message at specified level.
|
static void |
LogMF.log(Logger logger,
Level level,
String pattern,
char param1)
Log a parameterized message at specified level.
|
static void |
LogSF.log(Logger logger,
Level level,
String pattern,
double param1)
Log a parameterized message at specified level.
|
static void |
LogMF.log(Logger logger,
Level level,
String pattern,
double param1)
Log a parameterized message at specified level.
|
static void |
LogSF.log(Logger logger,
Level level,
String pattern,
float param1)
Log a parameterized message at specified level.
|
static void |
LogMF.log(Logger logger,
Level level,
String pattern,
float param1)
Log a parameterized message at specified level.
|
static void |
LogSF.log(Logger logger,
Level level,
String pattern,
int param1)
Log a parameterized message at specified level.
|
static void |
LogMF.log(Logger logger,
Level level,
String pattern,
int param1)
Log a parameterized message at specified level.
|
static void |
LogSF.log(Logger logger,
Level level,
String pattern,
long param1)
Log a parameterized message at specified level.
|
static void |
LogMF.log(Logger logger,
Level level,
String pattern,
long param1)
Log a parameterized message at specified level.
|
static void |
LogSF.log(Logger logger,
Level level,
String pattern,
Object param1)
Log a parameterized message at specified level.
|
static void |
LogMF.log(Logger logger,
Level level,
String pattern,
Object param1)
Log a parameterized message at specified level.
|
static void |
LogSF.log(Logger logger,
Level level,
String pattern,
Object[] parameters)
Log a parameterized message at specified level.
|
static void |
LogMF.log(Logger logger,
Level level,
String pattern,
Object[] parameters)
Log a parameterized message at specified level.
|
static void |
LogSF.log(Logger logger,
Level level,
String pattern,
Object arg0,
Object arg1)
Log a parameterized message at specified level.
|
static void |
LogMF.log(Logger logger,
Level level,
String pattern,
Object arg0,
Object arg1)
Log a parameterized message at specified level.
|
static void |
LogSF.log(Logger logger,
Level level,
String pattern,
Object arg0,
Object arg1,
Object arg2)
Log a parameterized message at specifed level.
|
static void |
LogMF.log(Logger logger,
Level level,
String pattern,
Object arg0,
Object arg1,
Object arg2)
Log a parameterized message at specifed level.
|
static void |
LogSF.log(Logger logger,
Level level,
String pattern,
Object arg0,
Object arg1,
Object arg2,
Object arg3)
Log a parameterized message at specified level.
|
static void |
LogMF.log(Logger logger,
Level level,
String pattern,
Object arg0,
Object arg1,
Object arg2,
Object arg3)
Log a parameterized message at specified level.
|
static void |
LogSF.log(Logger logger,
Level level,
String pattern,
short param1)
Log a parameterized message at specified level.
|
static void |
LogMF.log(Logger logger,
Level level,
String pattern,
short param1)
Log a parameterized message at specified level.
|
static void |
LogSF.log(Logger logger,
Level level,
Throwable t,
String pattern,
Object[] parameters)
Log a parameterized message at specified level.
|
static void |
LogMF.log(Logger logger,
Level level,
Throwable t,
String pattern,
Object[] parameters)
Log a parameterized message at specified level.
|
static void |
LogSF.logrb(Logger logger,
Level level,
String bundleName,
String key,
boolean param1)
Log a parameterized message using a pattern from a resource bundle.
|
static void |
LogMF.logrb(Logger logger,
Level level,
String bundleName,
String key,
boolean param1)
Log a parameterized message using a pattern from a resource bundle.
|
static void |
LogSF.logrb(Logger logger,
Level level,
String bundleName,
String key,
byte param1)
Log a parameterized message using a pattern from a resource bundle.
|
static void |
LogMF.logrb(Logger logger,
Level level,
String bundleName,
String key,
byte param1)
Log a parameterized message using a pattern from a resource bundle.
|
static void |
LogSF.logrb(Logger logger,
Level level,
String bundleName,
String key,
char param1)
Log a parameterized message using a pattern from a resource bundle.
|
static void |
LogMF.logrb(Logger logger,
Level level,
String bundleName,
String key,
char param1)
Log a parameterized message using a pattern from a resource bundle.
|
static void |
LogSF.logrb(Logger logger,
Level level,
String bundleName,
String key,
double param1)
Log a parameterized message using a pattern from a resource bundle.
|
static void |
LogMF.logrb(Logger logger,
Level level,
String bundleName,
String key,
double param1)
Log a parameterized message using a pattern from a resource bundle.
|
static void |
LogSF.logrb(Logger logger,
Level level,
String bundleName,
String key,
float param1)
Log a parameterized message using a pattern from a resource bundle.
|
static void |
LogMF.logrb(Logger logger,
Level level,
String bundleName,
String key,
float param1)
Log a parameterized message using a pattern from a resource bundle.
|
static void |
LogSF.logrb(Logger logger,
Level level,
String bundleName,
String key,
int param1)
Log a parameterized message using a pattern from a resource bundle.
|
static void |
LogMF.logrb(Logger logger,
Level level,
String bundleName,
String key,
int param1)
Log a parameterized message using a pattern from a resource bundle.
|
static void |
LogSF.logrb(Logger logger,
Level level,
String bundleName,
String key,
long param1)
Log a parameterized message using a pattern from a resource bundle.
|
static void |
LogMF.logrb(Logger logger,
Level level,
String bundleName,
String key,
long param1)
Log a parameterized message using a pattern from a resource bundle.
|
static void |
LogSF.logrb(Logger logger,
Level level,
String bundleName,
String key,
Object param1)
Log a parameterized message using a pattern from a resource bundle.
|
static void |
LogMF.logrb(Logger logger,
Level level,
String bundleName,
String key,
Object param1)
Log a parameterized message using a pattern from a resource bundle.
|
static void |
LogSF.logrb(Logger logger,
Level level,
String bundleName,
String key,
Object[] parameters)
Log a parameterized message using a pattern from a resource bundle.
|
static void |
LogMF.logrb(Logger logger,
Level level,
String bundleName,
String key,
Object[] parameters)
Log a parameterized message using a pattern from a resource bundle.
|
static void |
LogSF.logrb(Logger logger,
Level level,
String bundleName,
String key,
Object param0,
Object param1)
Log a parameterized message using a pattern from a resource bundle.
|
static void |
LogMF.logrb(Logger logger,
Level level,
String bundleName,
String key,
Object param0,
Object param1)
Log a parameterized message using a pattern from a resource bundle.
|
static void |
LogSF.logrb(Logger logger,
Level level,
String bundleName,
String key,
Object param0,
Object param1,
Object param2)
Log a parameterized message using a pattern from a resource bundle.
|
static void |
LogMF.logrb(Logger logger,
Level level,
String bundleName,
String key,
Object param0,
Object param1,
Object param2)
Log a parameterized message using a pattern from a resource bundle.
|
static void |
LogSF.logrb(Logger logger,
Level level,
String bundleName,
String key,
Object param0,
Object param1,
Object param2,
Object param3)
Log a parameterized message using a pattern from a resource bundle.
|
static void |
LogMF.logrb(Logger logger,
Level level,
String bundleName,
String key,
Object param0,
Object param1,
Object param2,
Object param3)
Log a parameterized message using a pattern from a resource bundle.
|
static void |
LogSF.logrb(Logger logger,
Level level,
String bundleName,
String key,
short param1)
Log a parameterized message using a pattern from a resource bundle.
|
static void |
LogMF.logrb(Logger logger,
Level level,
String bundleName,
String key,
short param1)
Log a parameterized message using a pattern from a resource bundle.
|
static void |
LogSF.logrb(Logger logger,
Level level,
Throwable t,
String bundleName,
String key,
Object[] parameters)
Log a parameterized message using a pattern from a resource bundle.
|
static void |
LogMF.logrb(Logger logger,
Level level,
Throwable t,
String bundleName,
String key,
Object[] parameters)
Log a parameterized message using a pattern from a resource bundle.
|
void |
Category.setLevel(Level level) |
void |
Hierarchy.setThreshold(Level l) |
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 |
---|---|
static Level |
OptionConverter.toLevel(String value,
Level defaultValue)
Converts a standard or custom priority level to a Level
object.
|
Modifier and Type | Method and Description |
---|---|
static Level |
OptionConverter.toLevel(String value,
Level defaultValue)
Converts a standard or custom priority level to a Level
object.
|
Modifier and Type | Method and Description |
---|---|
Level |
LogEvent.getLevel()
Return the level of this event.
|
Constructor and Description |
---|
LogEvent(String fqnOfCategoryClass,
Logger logger,
long timeStamp,
Level level,
Object message,
String threadName,
ThrowableInformation throwable,
String ndc,
LocationInfo info,
Map properties)
Create new instance.
|
Modifier and Type | Method and Description |
---|---|
Level |
RootLogger.getChainedLevel()
Return the assigned level value without walking the logger
hierarchy.
|
Level |
RootCategory.getChainedLevel()
Deprecated.
Return the assigned level value without walking the category
hierarchy.
|
Level |
NOPLogger.getEffectiveLevel() |
Level |
LoggingEvent.getLevel() |
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)
Setting a null value to the level of the root logger may have catastrophic
results.
|
void |
RootCategory.setLevel(Level level)
Deprecated.
Setting a null value to the level of the root category may have catastrophic
results.
|
void |
NOPLogger.setLevel(Level level) |
void |
RootCategory.setPriority(Level level)
Deprecated.
|
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) |
RootCategory(Level level)
Deprecated.
The root category names itself as "root".
|
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 © 2012 JBoss by Red Hat. All Rights Reserved.