Package | Description |
---|---|
org.apache.log4j |
The main log4j package.
|
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.
|
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(String sArg)
Deprecated.
Please use the
Level.toLevel(String) method instead. |
static Priority |
Priority.toPriority(String sArg,
Priority defaultPriority)
Deprecated.
Please use the
Level.toLevel(String, Level) method instead. |
Modifier and Type | Method and Description |
---|---|
protected void |
Category.forcedLog(String fqcn,
Priority level,
Object message,
Throwable t) |
static Level |
JBossLevelMapping.getLevelFor(Priority level)
Finds the
jboss-log-manager level for the log4j priority. |
boolean |
AppenderSkeleton.isAsSevereAsThreshold(Priority priority)
Check whether the message level is below the appender's
threshold.
|
boolean |
Category.isEnabledFor(Priority level) |
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,
String key,
Object[] params,
Throwable t) |
void |
Category.l7dlog(Priority priority,
String key,
Throwable t) |
void |
Category.log(Priority priority,
Object message) |
void |
Category.log(Priority priority,
Object message,
Throwable t) |
void |
Category.log(String callerFQCN,
Priority level,
Object message,
Throwable t) |
void |
Category.setPriority(Priority priority) |
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(String sArg,
Priority defaultPriority)
Deprecated.
Please use the
Level.toLevel(String, Level) method instead. |
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(String fqnOfCategoryClass,
Category logger,
long timeStamp,
Priority level,
Object message,
Throwable throwable)
Instantiate a LoggingEvent from the supplied parameters.
|
LogEvent(String fqnOfCategoryClass,
Category logger,
Priority level,
Object message,
Throwable throwable)
Instantiate a LoggingEvent from the supplied parameters.
|
Modifier and Type | Field and Description |
---|---|
Priority |
LoggingEvent.level |
Modifier and Type | Method and Description |
---|---|
Priority |
NOPLogger.getChainedPriority()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
NOPLogger.isEnabledFor(Priority level) |
void |
NOPLogger.l7dlog(Priority priority,
String key,
Object[] params,
Throwable t) |
void |
NOPLogger.l7dlog(Priority priority,
String key,
Throwable t) |
void |
NOPLogger.log(Priority priority,
Object message) |
void |
NOPLogger.log(Priority priority,
Object message,
Throwable t) |
void |
NOPLogger.log(String callerFQCN,
Priority level,
Object message,
Throwable t) |
void |
NOPLogger.setPriority(Priority priority)
Deprecated.
|
Constructor and Description |
---|
LoggingEvent(String fqnOfCategoryClass,
Category logger,
long timeStamp,
Priority level,
Object message,
Throwable throwable) |
LoggingEvent(String fqnOfCategoryClass,
Category logger,
Priority level,
Object message,
Throwable throwable) |
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.