Package | Description |
---|---|
org.apache.logging.log4j |
Public API for Log4j 2.
|
org.apache.logging.log4j.internal | |
org.apache.logging.log4j.spi |
Internal interfaces and classes to be used by authors of logging implementations or for internal use by
API classes.
|
Modifier and Type | Field and Description |
---|---|
static LogBuilder |
LogBuilder.NOOP |
Modifier and Type | Method and Description |
---|---|
default LogBuilder |
Logger.always()
Construct a log event that will always be logged.
|
default LogBuilder |
Logger.atDebug()
Construct a trace log event.
|
default LogBuilder |
Logger.atError()
Construct a trace log event.
|
default LogBuilder |
Logger.atFatal()
Construct a trace log event.
|
default LogBuilder |
Logger.atInfo()
Construct a trace log event.
|
default LogBuilder |
Logger.atLevel(Level level)
Construct a log event.
|
default LogBuilder |
Logger.atTrace()
Construct a trace log event.
|
default LogBuilder |
Logger.atWarn()
Construct a trace log event.
|
default LogBuilder |
LogBuilder.withLocation() |
default LogBuilder |
LogBuilder.withLocation(StackTraceElement location) |
default LogBuilder |
LogBuilder.withMarker(Marker marker) |
default LogBuilder |
LogBuilder.withThrowable(Throwable throwable) |
Modifier and Type | Class and Description |
---|---|
class |
DefaultLogBuilder
Collects data for a log event and then logs it.
|
Modifier and Type | Method and Description |
---|---|
LogBuilder |
DefaultLogBuilder.reset(Level level)
This method should be considered internal.
|
LogBuilder |
DefaultLogBuilder.withLocation() |
LogBuilder |
DefaultLogBuilder.withLocation(StackTraceElement location) |
LogBuilder |
DefaultLogBuilder.withMarker(Marker marker) |
LogBuilder |
DefaultLogBuilder.withThrowable(Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
LogBuilder |
AbstractLogger.always()
Construct a fatal log event.
|
LogBuilder |
AbstractLogger.atDebug()
Construct a debug log event.
|
LogBuilder |
AbstractLogger.atError()
Construct an error log event.
|
LogBuilder |
AbstractLogger.atFatal()
Construct a fatal log event.
|
LogBuilder |
AbstractLogger.atInfo()
Construct an informational log event.
|
LogBuilder |
AbstractLogger.atLevel(Level level)
Construct a log event.
|
LogBuilder |
AbstractLogger.atTrace()
Construct a trace log event.
|
LogBuilder |
AbstractLogger.atWarn()
Construct a warning log event.
|
Copyright © 1999-2020 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.