Package | Description |
---|---|
org.apache.logging.log4j |
Public API for Log4j 2.
|
org.apache.logging.log4j.internal |
This package should be considered private.
|
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 name,
int intValue)
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 name)
Return the Level associated with the name or null if the Level cannot be found.
|
static Level |
Level.toLevel(String sArg)
Converts the string passed as argument to a level.
|
static Level |
Level.toLevel(String name,
Level defaultLevel)
Converts the string passed as argument to a level.
|
static Level |
Level.valueOf(String name)
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> |
Level.getDeclaringClass() |
Modifier and Type | Method and Description |
---|---|
default LogBuilder |
Logger.atLevel(Level level)
Construct a log event.
|
void |
Logger.catching(Level level,
Throwable throwable)
Logs a
Throwable that has been caught to a specific logging level. |
int |
Level.compareTo(Level other) |
boolean |
Logger.isEnabled(Level level)
Checks whether this Logger is enabled for the given Level.
|
boolean |
Logger.isEnabled(Level level,
Marker marker)
Checks whether this Logger is enabled for the given Level and Marker.
|
boolean |
Level.isInRange(Level minLevel,
Level maxLevel)
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 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 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 level,
CharSequence message)
Logs a message CharSequence with the given level.
|
void |
Logger.log(Level level,
CharSequence message,
Throwable throwable)
Logs a CharSequence at the given level including the stack trace of the
Throwable throwable passed as
parameter. |
void |
Logger.log(Level level,
Marker marker,
CharSequence message)
Logs a message CharSequence with the given level.
|
void |
Logger.log(Level level,
Marker marker,
CharSequence message,
Throwable throwable)
Logs a CharSequence at the given level including the stack trace of the
Throwable throwable passed as
parameter. |
void |
Logger.log(Level level,
Marker marker,
Message message)
Logs a message with the specific Marker at the given level.
|
void |
Logger.log(Level level,
Marker marker,
MessageSupplier messageSupplier)
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 level,
Marker marker,
MessageSupplier messageSupplier,
Throwable throwable)
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 throwable passed as parameter. |
void |
Logger.log(Level level,
Marker marker,
Message message,
Throwable throwable)
Logs a message with the specific Marker at the given level.
|
void |
Logger.log(Level level,
Marker marker,
Object message)
Logs a message object with the given level.
|
void |
Logger.log(Level level,
Marker marker,
Object message,
Throwable throwable)
Logs a message at the given level including the stack trace of the
Throwable throwable passed as
parameter. |
void |
Logger.log(Level level,
Marker marker,
String message)
Logs a message object with the given level.
|
void |
Logger.log(Level level,
Marker marker,
String message,
Object... params)
Logs a message with parameters at the given level.
|
void |
Logger.log(Level level,
Marker marker,
String message,
Object p0)
Logs a message with parameters at the specified level.
|
void |
Logger.log(Level level,
Marker marker,
String message,
Object p0,
Object p1)
Logs a message with parameters at the specified level.
|
void |
Logger.log(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2)
Logs a message with parameters at the specified level.
|
void |
Logger.log(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3)
Logs a message with parameters at the specified level.
|
void |
Logger.log(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4)
Logs a message with parameters at the specified level.
|
void |
Logger.log(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5)
Logs a message with parameters at the specified level.
|
void |
Logger.log(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6)
Logs a message with parameters at the specified level.
|
void |
Logger.log(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7)
Logs a message with parameters at the specified level.
|
void |
Logger.log(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7,
Object p8)
Logs a message with parameters at the specified level.
|
void |
Logger.log(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7,
Object p8,
Object p9)
Logs a message with parameters at the specified level.
|
void |
Logger.log(Level level,
Marker marker,
String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the specified level.
|
void |
Logger.log(Level level,
Marker marker,
String message,
Throwable throwable)
Logs a message at the given level including the stack trace of the
Throwable throwable passed as
parameter. |
void |
Logger.log(Level level,
Marker marker,
Supplier<?> messageSupplier)
Logs a message (only to be constructed if the logging level is the specified level) with the specified Marker.
|
void |
Logger.log(Level level,
Marker marker,
Supplier<?> messageSupplier,
Throwable throwable)
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 throwable passed as parameter. |
void |
Logger.log(Level level,
Message message)
Logs a message with the specific Marker at the given level.
|
void |
Logger.log(Level level,
MessageSupplier messageSupplier)
Logs a message which is only to be constructed if the logging level is the specified level.
|
void |
Logger.log(Level level,
MessageSupplier messageSupplier,
Throwable throwable)
Logs a message (only to be constructed if the logging level is the specified level) including the stack log of
the
Throwable throwable passed as parameter. |
void |
Logger.log(Level level,
Message message,
Throwable throwable)
Logs a message with the specific Marker at the given level.
|
void |
Logger.log(Level level,
Object message)
Logs a message object with the given level.
|
void |
Logger.log(Level level,
Object message,
Throwable throwable)
Logs a message at the given level including the stack trace of the
Throwable throwable passed as
parameter. |
void |
Logger.log(Level level,
String message)
Logs a message object with the given level.
|
void |
Logger.log(Level level,
String message,
Object... params)
Logs a message with parameters at the given level.
|
void |
Logger.log(Level level,
String message,
Object p0)
Logs a message with parameters at the specified level.
|
void |
Logger.log(Level level,
String message,
Object p0,
Object p1)
Logs a message with parameters at the specified level.
|
void |
Logger.log(Level level,
String message,
Object p0,
Object p1,
Object p2)
Logs a message with parameters at the specified level.
|
void |
Logger.log(Level level,
String message,
Object p0,
Object p1,
Object p2,
Object p3)
Logs a message with parameters at the specified level.
|
void |
Logger.log(Level level,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4)
Logs a message with parameters at the specified level.
|
void |
Logger.log(Level level,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5)
Logs a message with parameters at the specified level.
|
void |
Logger.log(Level level,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6)
Logs a message with parameters at the specified level.
|
void |
Logger.log(Level level,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7)
Logs a message with parameters at the specified level.
|
void |
Logger.log(Level level,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7,
Object p8)
Logs a message with parameters at the specified level.
|
void |
Logger.log(Level level,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7,
Object p8,
Object p9)
Logs a message with parameters at the specified level.
|
void |
Logger.log(Level level,
String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the specified level.
|
void |
Logger.log(Level level,
String message,
Throwable throwable)
Logs a message at the given level including the stack trace of the
Throwable throwable passed as
parameter. |
void |
Logger.log(Level level,
Supplier<?> messageSupplier)
Logs a message which is only to be constructed if the logging level is the specified level.
|
void |
Logger.log(Level level,
Supplier<?> messageSupplier,
Throwable throwable)
Logs a message (only to be constructed if the logging level is the specified level) including the stack log of
the
Throwable throwable passed as parameter. |
static void |
EventLogger.logEvent(StructuredDataMessage msg,
Level level)
Logs events and specify the logging level.
|
default void |
Logger.logMessage(Level level,
Marker marker,
String fqcn,
StackTraceElement location,
Message message,
Throwable throwable)
Logs a Message.
|
void |
Logger.printf(Level level,
Marker marker,
String format,
Object... params)
Logs a formatted message using the specified format string and arguments.
|
void |
Logger.printf(Level level,
String format,
Object... params)
Logs a formatted message using the specified format string and arguments.
|
<T extends Throwable> |
Logger.throwing(Level level,
T throwable)
Logs a
Throwable to be thrown. |
static Level |
Level.toLevel(String name,
Level defaultLevel)
Converts the string passed as argument to a level.
|
Modifier and Type | Method and Description |
---|---|
LogBuilder |
DefaultLogBuilder.reset(Level level)
This method should be considered internal.
|
Constructor and Description |
---|
DefaultLogBuilder(Logger logger,
Level level) |
Modifier and Type | Method and Description |
---|---|
Level |
SimpleLogger.getLevel() |
Modifier and Type | Method and Description |
---|---|
boolean |
SimpleLogger.isEnabled(Level testLevel,
Marker marker,
CharSequence msg,
Throwable t) |
boolean |
SimpleLogger.isEnabled(Level testLevel,
Marker marker,
Message msg,
Throwable t) |
boolean |
SimpleLogger.isEnabled(Level testLevel,
Marker marker,
Object msg,
Throwable t) |
boolean |
SimpleLogger.isEnabled(Level testLevel,
Marker marker,
String msg) |
boolean |
SimpleLogger.isEnabled(Level testLevel,
Marker marker,
String msg,
Object... p1) |
boolean |
SimpleLogger.isEnabled(Level testLevel,
Marker marker,
String message,
Object p0) |
boolean |
SimpleLogger.isEnabled(Level testLevel,
Marker marker,
String message,
Object p0,
Object p1) |
boolean |
SimpleLogger.isEnabled(Level testLevel,
Marker marker,
String message,
Object p0,
Object p1,
Object p2) |
boolean |
SimpleLogger.isEnabled(Level testLevel,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3) |
boolean |
SimpleLogger.isEnabled(Level testLevel,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4) |
boolean |
SimpleLogger.isEnabled(Level testLevel,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5) |
boolean |
SimpleLogger.isEnabled(Level testLevel,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6) |
boolean |
SimpleLogger.isEnabled(Level testLevel,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7) |
boolean |
SimpleLogger.isEnabled(Level testLevel,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7,
Object p8) |
boolean |
SimpleLogger.isEnabled(Level testLevel,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7,
Object p8,
Object p9) |
boolean |
SimpleLogger.isEnabled(Level testLevel,
Marker marker,
String msg,
Throwable t) |
void |
SimpleLogger.logMessage(String fqcn,
Level mgsLevel,
Marker marker,
Message msg,
Throwable throwable) |
void |
SimpleLogger.setLevel(Level level) |
Constructor and Description |
---|
SimpleLogger(String name,
Level defaultLevel,
boolean showLogName,
boolean showShortLogName,
boolean showDateTime,
boolean showContextMap,
String dateTimeFormat,
MessageFactory messageFactory,
PropertiesUtil props,
PrintStream stream) |
Modifier and Type | Method and Description |
---|---|
Level |
ExtendedLoggerWrapper.getLevel() |
Modifier and Type | Method and Description |
---|---|
LogBuilder |
AbstractLogger.atLevel(Level level)
Construct a log event.
|
void |
AbstractLogger.catching(Level level,
Throwable throwable) |
protected void |
AbstractLogger.catching(String fqcn,
Level level,
Throwable throwable)
Logs a Throwable that has been caught with location information.
|
boolean |
AbstractLogger.isEnabled(Level level) |
boolean |
AbstractLogger.isEnabled(Level level,
Marker marker) |
boolean |
ExtendedLogger.isEnabled(Level level,
Marker marker,
CharSequence message,
Throwable t)
Determines if logging is enabled.
|
boolean |
ExtendedLoggerWrapper.isEnabled(Level level,
Marker marker,
CharSequence message,
Throwable t)
Detect if the event would be logged.
|
boolean |
ExtendedLogger.isEnabled(Level level,
Marker marker,
Message message,
Throwable t)
Determines if logging is enabled.
|
boolean |
ExtendedLoggerWrapper.isEnabled(Level level,
Marker marker,
Message message,
Throwable t)
Detect if the event would be logged.
|
boolean |
ExtendedLogger.isEnabled(Level level,
Marker marker,
Object message,
Throwable t)
Determines if logging is enabled.
|
boolean |
ExtendedLoggerWrapper.isEnabled(Level level,
Marker marker,
Object message,
Throwable t)
Detect if the event would be logged.
|
boolean |
ExtendedLogger.isEnabled(Level level,
Marker marker,
String message)
Determine if logging is enabled.
|
boolean |
ExtendedLoggerWrapper.isEnabled(Level level,
Marker marker,
String message)
Detect if the event would be logged.
|
boolean |
ExtendedLogger.isEnabled(Level level,
Marker marker,
String message,
Object... params)
Determines if logging is enabled.
|
boolean |
ExtendedLoggerWrapper.isEnabled(Level level,
Marker marker,
String message,
Object... params)
Detect if the event would be logged.
|
boolean |
ExtendedLogger.isEnabled(Level level,
Marker marker,
String message,
Object p0)
Determines if logging is enabled.
|
boolean |
ExtendedLoggerWrapper.isEnabled(Level level,
Marker marker,
String message,
Object p0) |
boolean |
ExtendedLogger.isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1)
Determines if logging is enabled.
|
boolean |
ExtendedLoggerWrapper.isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1) |
boolean |
ExtendedLogger.isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2)
Determines if logging is enabled.
|
boolean |
ExtendedLoggerWrapper.isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2) |
boolean |
ExtendedLogger.isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3)
Determines if logging is enabled.
|
boolean |
ExtendedLoggerWrapper.isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3) |
boolean |
ExtendedLogger.isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4)
Determines if logging is enabled.
|
boolean |
ExtendedLoggerWrapper.isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4) |
boolean |
ExtendedLogger.isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5)
Determines if logging is enabled.
|
boolean |
ExtendedLoggerWrapper.isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5) |
boolean |
ExtendedLogger.isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6)
Determines if logging is enabled.
|
boolean |
ExtendedLoggerWrapper.isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6) |
boolean |
ExtendedLogger.isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7)
Determines if logging is enabled.
|
boolean |
ExtendedLoggerWrapper.isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7) |
boolean |
ExtendedLogger.isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7,
Object p8)
Determines if logging is enabled.
|
boolean |
ExtendedLoggerWrapper.isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7,
Object p8) |
boolean |
ExtendedLogger.isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7,
Object p8,
Object p9)
Determines if logging is enabled.
|
boolean |
ExtendedLoggerWrapper.isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7,
Object p8,
Object p9) |
boolean |
ExtendedLogger.isEnabled(Level level,
Marker marker,
String message,
Throwable t)
Determines if logging is enabled.
|
boolean |
ExtendedLoggerWrapper.isEnabled(Level level,
Marker marker,
String message,
Throwable t)
Detect if the event would be logged.
|
void |
AbstractLogger.log(Level level,
CharSequence message) |
void |
AbstractLogger.log(Level level,
CharSequence message,
Throwable throwable) |
void |
AbstractLogger.log(Level level,
Marker marker,
CharSequence message) |
void |
AbstractLogger.log(Level level,
Marker marker,
CharSequence message,
Throwable throwable) |
void |
AbstractLogger.log(Level level,
Marker marker,
Message message) |
void |
AbstractLogger.log(Level level,
Marker marker,
MessageSupplier messageSupplier) |
void |
AbstractLogger.log(Level level,
Marker marker,
MessageSupplier messageSupplier,
Throwable throwable) |
void |
AbstractLogger.log(Level level,
Marker marker,
Message message,
Throwable throwable) |
void |
AbstractLogger.log(Level level,
Marker marker,
Object message) |
void |
AbstractLogger.log(Level level,
Marker marker,
Object message,
Throwable throwable) |
void |
AbstractLogger.log(Level level,
Marker marker,
String message) |
void |
AbstractLogger.log(Level level,
Marker marker,
String message,
Object... params) |
void |
AbstractLogger.log(Level level,
Marker marker,
String message,
Object p0) |
void |
AbstractLogger.log(Level level,
Marker marker,
String message,
Object p0,
Object p1) |
void |
AbstractLogger.log(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2) |
void |
AbstractLogger.log(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3) |
void |
AbstractLogger.log(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4) |
void |
AbstractLogger.log(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5) |
void |
AbstractLogger.log(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6) |
void |
AbstractLogger.log(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7) |
void |
AbstractLogger.log(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7,
Object p8) |
void |
AbstractLogger.log(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7,
Object p8,
Object p9) |
protected void |
AbstractLogger.log(Level level,
Marker marker,
String fqcn,
StackTraceElement location,
Message message,
Throwable throwable) |
void |
AbstractLogger.log(Level level,
Marker marker,
String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.log(Level level,
Marker marker,
String message,
Throwable throwable) |
void |
AbstractLogger.log(Level level,
Marker marker,
Supplier<?> messageSupplier) |
void |
AbstractLogger.log(Level level,
Marker marker,
Supplier<?> messageSupplier,
Throwable throwable) |
void |
AbstractLogger.log(Level level,
Message message) |
void |
AbstractLogger.log(Level level,
MessageSupplier messageSupplier) |
void |
AbstractLogger.log(Level level,
MessageSupplier messageSupplier,
Throwable throwable) |
void |
AbstractLogger.log(Level level,
Message message,
Throwable throwable) |
void |
AbstractLogger.log(Level level,
Object message) |
void |
AbstractLogger.log(Level level,
Object message,
Throwable throwable) |
void |
AbstractLogger.log(Level level,
String message) |
void |
AbstractLogger.log(Level level,
String message,
Object... params) |
void |
AbstractLogger.log(Level level,
String message,
Object p0) |
void |
AbstractLogger.log(Level level,
String message,
Object p0,
Object p1) |
void |
AbstractLogger.log(Level level,
String message,
Object p0,
Object p1,
Object p2) |
void |
AbstractLogger.log(Level level,
String message,
Object p0,
Object p1,
Object p2,
Object p3) |
void |
AbstractLogger.log(Level level,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4) |
void |
AbstractLogger.log(Level level,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5) |
void |
AbstractLogger.log(Level level,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6) |
void |
AbstractLogger.log(Level level,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7) |
void |
AbstractLogger.log(Level level,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7,
Object p8) |
void |
AbstractLogger.log(Level level,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7,
Object p8,
Object p9) |
void |
AbstractLogger.log(Level level,
String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.log(Level level,
String message,
Throwable throwable) |
void |
AbstractLogger.log(Level level,
Supplier<?> messageSupplier) |
void |
AbstractLogger.log(Level level,
Supplier<?> messageSupplier,
Throwable throwable) |
void |
ExtendedLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
CharSequence message,
Throwable t)
Logs a CharSequence message if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
CharSequence message,
Throwable throwable) |
void |
ExtendedLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
MessageSupplier msgSupplier,
Throwable t)
Logs a message which is only to be constructed if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
MessageSupplier messageSupplier,
Throwable throwable) |
void |
ExtendedLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
Message message,
Throwable t)
Logs a message if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
Message message,
Throwable throwable) |
void |
ExtendedLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
Object message,
Throwable t)
Logs a message if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
Object message,
Throwable throwable) |
void |
ExtendedLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message)
Logs a message if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message) |
void |
ExtendedLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object... params)
Logs a message if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object... params) |
void |
ExtendedLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object p0)
Logs a message if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object p0) |
void |
ExtendedLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1)
Logs a message if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1) |
void |
ExtendedLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2)
Logs a message if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2) |
void |
ExtendedLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3)
Logs a message if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3) |
void |
ExtendedLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4)
Logs a message if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4) |
void |
ExtendedLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5)
Logs a message if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5) |
void |
ExtendedLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6)
Logs a message if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6) |
void |
ExtendedLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7)
Logs a message if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7) |
void |
ExtendedLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7,
Object p8)
Logs a message if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7,
Object p8) |
void |
ExtendedLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7,
Object p8,
Object p9)
Logs a message if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7,
Object p8,
Object p9) |
void |
ExtendedLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Supplier<?>... paramSuppliers)
Logs a message whose parameters are only to be constructed if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Supplier<?>... paramSuppliers) |
void |
ExtendedLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Throwable t)
Logs a message if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Throwable throwable) |
void |
ExtendedLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
Supplier<?> msgSupplier,
Throwable t)
Logs a message which is only to be constructed if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
Supplier<?> messageSupplier,
Throwable throwable) |
void |
LocationAwareLogger.logMessage(Level level,
Marker marker,
String fqcn,
StackTraceElement location,
Message message,
Throwable throwable) |
void |
AbstractLogger.logMessage(Level level,
Marker marker,
String fqcn,
StackTraceElement location,
Message message,
Throwable throwable) |
protected void |
AbstractLogger.logMessage(String fqcn,
Level level,
Marker marker,
CharSequence message,
Throwable throwable) |
protected void |
AbstractLogger.logMessage(String fqcn,
Level level,
Marker marker,
MessageSupplier messageSupplier,
Throwable throwable) |
void |
ExtendedLogger.logMessage(String fqcn,
Level level,
Marker marker,
Message message,
Throwable t)
Always logs a message at the specified level.
|
void |
ExtendedLoggerWrapper.logMessage(String fqcn,
Level level,
Marker marker,
Message message,
Throwable t)
Always log an event.
|
protected void |
AbstractLogger.logMessage(String fqcn,
Level level,
Marker marker,
Object message,
Throwable throwable) |
protected void |
AbstractLogger.logMessage(String fqcn,
Level level,
Marker marker,
String message) |
protected void |
AbstractLogger.logMessage(String fqcn,
Level level,
Marker marker,
String message,
Object... params) |
protected void |
AbstractLogger.logMessage(String fqcn,
Level level,
Marker marker,
String message,
Object p0) |
protected void |
AbstractLogger.logMessage(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1) |
protected void |
AbstractLogger.logMessage(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2) |
protected void |
AbstractLogger.logMessage(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3) |
protected void |
AbstractLogger.logMessage(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4) |
protected void |
AbstractLogger.logMessage(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5) |
protected void |
AbstractLogger.logMessage(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6) |
protected void |
AbstractLogger.logMessage(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7) |
protected void |
AbstractLogger.logMessage(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7,
Object p8) |
protected void |
AbstractLogger.logMessage(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7,
Object p8,
Object p9) |
protected void |
AbstractLogger.logMessage(String fqcn,
Level level,
Marker marker,
String message,
Supplier<?>... paramSuppliers) |
protected void |
AbstractLogger.logMessage(String fqcn,
Level level,
Marker marker,
String message,
Throwable throwable) |
protected void |
AbstractLogger.logMessage(String fqcn,
Level level,
Marker marker,
Supplier<?> messageSupplier,
Throwable throwable) |
void |
AbstractLogger.printf(Level level,
Marker marker,
String format,
Object... params) |
void |
AbstractLogger.printf(Level level,
String format,
Object... params) |
<T extends Throwable> |
AbstractLogger.throwing(Level level,
T throwable) |
protected <T extends Throwable> |
AbstractLogger.throwing(String fqcn,
Level level,
T throwable)
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 |
StatusListener.getStatusLevel()
Return the Log Level that this listener wants included.
|
Level |
StatusConsoleListener.getStatusLevel()
Return the Log Level for which the Listener should receive events.
|
Modifier and Type | Method and Description |
---|---|
boolean |
StatusLogger.isEnabled(Level level,
Marker marker) |
boolean |
StatusLogger.isEnabled(Level level,
Marker marker,
CharSequence message,
Throwable t) |
boolean |
StatusLogger.isEnabled(Level level,
Marker marker,
Message message,
Throwable t) |
boolean |
StatusLogger.isEnabled(Level level,
Marker marker,
Object message,
Throwable t) |
boolean |
StatusLogger.isEnabled(Level level,
Marker marker,
String message) |
boolean |
StatusLogger.isEnabled(Level level,
Marker marker,
String message,
Object... params) |
boolean |
StatusLogger.isEnabled(Level level,
Marker marker,
String message,
Object p0) |
boolean |
StatusLogger.isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1) |
boolean |
StatusLogger.isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2) |
boolean |
StatusLogger.isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3) |
boolean |
StatusLogger.isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4) |
boolean |
StatusLogger.isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5) |
boolean |
StatusLogger.isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6) |
boolean |
StatusLogger.isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7) |
boolean |
StatusLogger.isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7,
Object p8) |
boolean |
StatusLogger.isEnabled(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7,
Object p8,
Object p9) |
boolean |
StatusLogger.isEnabled(Level level,
Marker marker,
String message,
Throwable t) |
void |
StatusLogger.logMessage(String fqcn,
Level level,
Marker marker,
Message msg,
Throwable t)
Adds an event.
|
void |
StatusLogger.setLevel(Level level) |
void |
StatusConsoleListener.setLevel(Level level)
Sets the level to a new value.
|
void |
StatusLogger.updateListenerLevel(Level status) |
Constructor and Description |
---|
StatusConsoleListener(Level level)
Creates the StatusConsoleListener using the supplied Level.
|
StatusConsoleListener(Level level,
PrintStream stream)
Creates the StatusConsoleListener using the supplied Level.
|
StatusData(StackTraceElement caller,
Level level,
Message msg,
Throwable t,
String threadName)
Creates the StatusData object.
|
Copyright © 1999-1969 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.