| Package | Description |
|---|---|
| org.apache.logging.log4j |
Public API for Log4j 2.
|
| org.apache.logging.log4j.simple |
Simple logging implementation.
|
| org.apache.logging.log4j.spi |
Internal interfaces and classes to be used by authors of logging implementations or for internal use by API classes.
|
| org.apache.logging.log4j.status |
Status API for Log4j 2.
|
| Modifier and Type | Field and Description |
|---|---|
static Level |
Level.ALL
All events should be logged.
|
static Level |
Level.DEBUG
A general debugging event.
|
static Level |
Level.ERROR
An error in the application, possibly recoverable.
|
static Level |
Level.FATAL
A severe error that will prevent the application from continuing.
|
static Level |
Level.INFO
An event for informational purposes.
|
static Level |
Level.OFF
No events will be logged.
|
static Level |
Level.TRACE
A fine-grained debug message, typically capturing the flow through the application.
|
static Level |
Level.WARN
An event that might possible lead to an error.
|
| Modifier and Type | Method and Description |
|---|---|
Level |
Level.clone()
|
static Level |
Level.forName(String
Retrieves an existing Level or creates on if it didn't previously exist.
|
Level |
Logger.getLevel()
Gets the Level associated with the Logger.
|
static Level |
Level.getLevel(String
Return the Level associated with the name or null if the Level cannot be found.
|
static Level |
Level.toLevel(String
Converts the string passed as argument to a level.
|
static Level |
Level.toLevel(String
Converts the string passed as argument to a level.
|
static Level |
Level.valueOf(String
Return the Level associated with the name.
|
static Level |
Level.values()
Return an array of all the Levels that have been registered.
|
| Modifier and Type | Method and Description |
|---|---|
Class |
Level.getDeclaringClass()
|
| Modifier and Type | Method and Description |
|---|---|
void |
Logger.catching(Level
Logs an exception or error that has been caught to a specific logging level.
|
int |
Level.compareTo(Level
|
boolean |
Logger.isEnabled(Level
Checks whether this Logger is enabled for the the given Level.
|
boolean |
Logger.isEnabled(Level
Checks whether this logger is enabled at the specified level and an optional Marker.
|
boolean |
Level.isInRange(Level
Compares this level against the levels passed as arguments and returns true if this level is in between the given levels.
|
boolean |
Level.isLessSpecificThan(Level
Compares this level against the level passed as an argument and returns true if this level is the same or is less specific.
|
boolean |
Level.isMoreSpecificThan(Level
Compares this level against the level passed as an argument and returns true if this level is the same or is more specific.
|
void |
Logger.log(Level
Logs a message with the specific Marker at the given level.
|
void |
Logger.log(Level
Logs a message which is only to be constructed if the logging level is the specified level with the specified Marker.
|
void |
Logger.log(Level
Logs a message (only to be constructed if the logging level is the specified level) with the specified Marker and including the stack log of the
Throwable
t passed as parameter.
|
void |
Logger.log(Level
Logs a message with the specific Marker at the given level.
|
void |
Logger.log(Level
Logs a message object with the given level.
|
void |
Logger.log(Level
Logs a message at the given level including the stack trace of the
Throwable
t passed as parameter.
|
void |
Logger.log(Level
Logs a message object with the given level.
|
void |
Logger.log(Level
Logs a message with parameters at the given level.
|
void |
Logger.log(Level
Logs a message with parameters which are only to be constructed if the logging level is the specified level.
|
void |
Logger.log(Level
Logs a message at the given level including the stack trace of the
Throwable
t passed as parameter.
|
void |
Logger.log(Level
Logs a message (only to be constructed if the logging level is the specified level) with the specified Marker.
|
void |
Logger.log(Level
Logs a message (only to be constructed if the logging level is the specified level) with the specified Marker and including the stack log of the
Throwable
t passed as parameter.
|
void |
Logger.log(Level
Logs a message with the specific Marker at the given level.
|
void |
Logger.log(Level
Logs a message which is only to be constructed if the logging level is the specified level.
|
void |
Logger.log(Level
Logs a message (only to be constructed if the logging level is the specified level) including the stack log of the
Throwable
t passed as parameter.
|
void |
Logger.log(Level
Logs a message with the specific Marker at the given level.
|
void |
Logger.log(Level
Logs a message object with the given level.
|
void |
Logger.log(Level
Logs a message at the given level including the stack trace of the
Throwable
t passed as parameter.
|
void |
Logger.log(Level
Logs a message object with the given level.
|
void |
Logger.log(Level
Logs a message with parameters at the given level.
|
void |
Logger.log(Level
Logs a message with parameters which are only to be constructed if the logging level is the specified level.
|
void |
Logger.log(Level
Logs a message at the given level including the stack trace of the
Throwable
t passed as parameter.
|
void |
Logger.log(Level
Logs a message which is only to be constructed if the logging level is the specified level.
|
void |
Logger.log(Level
Logs a message (only to be constructed if the logging level is the specified level) including the stack log of the
Throwable
t passed as parameter.
|
static void |
EventLogger.logEvent(StructuredDataMessage
Logs events and specify the logging level.
|
void |
Logger.printf(Level
Logs a formatted message using the specified format string and arguments.
|
void |
Logger.printf(Level
Logs a formatted message using the specified format string and arguments.
|
<T extends Throwable |
Logger.throwing(Level
Logs an exception or error to be thrown.
|
static Level |
Level.toLevel(String
Converts the string passed as argument to a level.
|
| Modifier and Type | Method and Description |
|---|---|
Level |
SimpleLogger.getLevel()
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
SimpleLogger.isEnabled(Level
|
boolean |
SimpleLogger.isEnabled(Level
|
boolean |
SimpleLogger.isEnabled(Level
|
boolean |
SimpleLogger.isEnabled(Level
|
boolean |
SimpleLogger.isEnabled(Level
|
void |
SimpleLogger.logMessage(String
|
void |
SimpleLogger.setLevel(Level
|
| Constructor and Description | |
|---|---|
SimpleLogger(String
|
| Modifier and Type | Method and Description |
|---|---|
Level |
ExtendedLoggerWrapper.getLevel()
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractLogger.catching(Level
|
protected void |
AbstractLogger.catching(String
Logs a Throwable that has been caught with location information.
|
boolean |
AbstractLogger.isEnabled(Level
|
boolean |
AbstractLogger.isEnabled(Level
|
boolean |
ExtendedLoggerWrapper.isEnabled(Level
Detect if the event would be logged.
|
boolean |
ExtendedLogger.isEnabled(Level
Determines if logging is enabled.
|
boolean |
ExtendedLoggerWrapper.isEnabled(Level
Detect if the event would be logged.
|
boolean |
ExtendedLogger.isEnabled(Level
Determines if logging is enabled.
|
boolean |
ExtendedLoggerWrapper.isEnabled(Level
Detect if the event would be logged.
|
boolean |
ExtendedLogger.isEnabled(Level
Determine if logging is enabled.
|
boolean |
ExtendedLoggerWrapper.isEnabled(Level
Detect if the event would be logged.
|
boolean |
ExtendedLogger.isEnabled(Level
Determines if logging is enabled.
|
boolean |
ExtendedLoggerWrapper.isEnabled(Level
Detect if the event would be logged.
|
boolean |
ExtendedLogger.isEnabled(Level
Determines if logging is enabled.
|
void |
AbstractLogger.log(Level
|
void |
AbstractLogger.log(Level
|
void |
AbstractLogger.log(Level
|
void |
AbstractLogger.log(Level
|
void |
AbstractLogger.log(Level
|
void |
AbstractLogger.log(Level
|
void |
AbstractLogger.log(Level
|
void |
AbstractLogger.log(Level
|
void |
AbstractLogger.log(Level
|
void |
AbstractLogger.log(Level
|
void |
AbstractLogger.log(Level
|
void |
AbstractLogger.log(Level
|
void |
AbstractLogger.log(Level
|
void |
AbstractLogger.log(Level
|
void |
AbstractLogger.log(Level
|
void |
AbstractLogger.log(Level
|
void |
AbstractLogger.log(Level
|
void |
AbstractLogger.log(Level
|
void |
AbstractLogger.log(Level
|
void |
AbstractLogger.log(Level
|
void |
AbstractLogger.log(Level
|
void |
AbstractLogger.log(Level
|
void |
AbstractLogger.log(Level
|
void |
AbstractLogger.log(Level
|
void |
ExtendedLogger.logIfEnabled(String
Logs a message which is only to be constructed if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String
|
void |
ExtendedLogger.logIfEnabled(String
Logs a message if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String
|
void |
ExtendedLogger.logIfEnabled(String
Logs a message if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String
|
void |
ExtendedLogger.logIfEnabled(String
Logs a message if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String
|
void |
ExtendedLogger.logIfEnabled(String
Logs a message if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String
|
void |
ExtendedLogger.logIfEnabled(String
Logs a message whose parameters are only to be constructed if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String
|
void |
ExtendedLogger.logIfEnabled(String
Logs a message if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String
|
void |
ExtendedLogger.logIfEnabled(String
Logs a message which is only to be constructed if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String
|
protected void |
AbstractLogger.logMessage(String
|
void |
ExtendedLoggerWrapper.logMessage(String
Always log an event.
|
void |
ExtendedLogger.logMessage(String
Always logs a message at the specified level.
|
protected void |
AbstractLogger.logMessage(String
|
protected void |
AbstractLogger.logMessage(String
|
protected void |
AbstractLogger.logMessage(String
|
protected void |
AbstractLogger.logMessage(String
|
protected void |
AbstractLogger.logMessage(String
|
protected void |
AbstractLogger.logMessage(String
|
void |
AbstractLogger.printf(Level
|
void |
AbstractLogger.printf(Level
|
<T extends Throwable |
AbstractLogger.throwing(Level
|
protected <T extends Throwable |
AbstractLogger.throwing(String
Logs a Throwable to be thrown.
|
| Modifier and Type | Method and Description |
|---|---|
Level |
StatusLogger.getLevel()
|
Level |
StatusData.getLevel()
Returns the logging level for the event.
|
Level |
StatusConsoleListener.getStatusLevel()
Return the Log Level for which the Listener should receive events.
|
Level |
StatusListener.getStatusLevel()
Return the Log Level that this listener wants included.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
StatusLogger.isEnabled(Level
|
boolean |
StatusLogger.isEnabled(Level
|
boolean |
StatusLogger.isEnabled(Level
|
boolean |
StatusLogger.isEnabled(Level
|
boolean |
StatusLogger.isEnabled(Level
|
boolean |
StatusLogger.isEnabled(Level
|
void |
StatusLogger.logMessage(String
Adds an event.
|
void |
StatusConsoleListener.setLevel(Level
Sets the level to a new value.
|
void |
StatusLogger.setLevel(Level
|
| Constructor and Description | |
|---|---|
StatusConsoleListener(Level
Creates the StatusConsoleListener using the supplied Level.
|
|
StatusConsoleListener(Level
Creates the StatusConsoleListener using the supplied Level.
|
|
StatusData(StackTraceElement
Creates the StatusData object.
|