@GwtCompatible
public interface Logger
Modifier and Type | Interface and Description |
---|---|
static class |
Logger.LogLevel
A LogLevel is used to describe the severity of an event that is being logged.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isDebugEnabled(Class<?> logger)
Checks whether logging with
debug level is enabled for the supplied class. |
boolean |
isInfoEnabled(Class<?> logger)
Checks whether logging with
info level is enabled for the supplied class. |
boolean |
isTraceEnabled(Class<?> logger)
Checks whether logging with
trace level is enabled for the supplied class. |
boolean |
isWarnEnabled(Class<?> logger)
Checks whether logging with
warn level is enabled for the supplied class. |
void |
logDebug(String message,
Class<?> logger)
Logs a message with
debug level using the logger for the supplied class. |
void |
logDebug(String message,
Throwable cause,
Class<?> logger)
|
void |
logError(String message,
Class<?> logger)
Logs a message with
error level using the logger for the supplied class. |
void |
logError(String message,
Throwable cause,
Class<?> logger)
|
void |
logFatal(String message,
Class<?> logger)
Logs a message with
fatal level using the logger for the supplied class. |
void |
logFatal(String message,
Throwable cause,
Class<?> logger)
|
void |
logInfo(String message,
Class<?> logger)
Logs a message with
info level using the logger for the supplied class. |
void |
logInfo(String message,
Throwable cause,
Class<?> logger)
|
void |
logTrace(String message,
Class<?> logger)
Logs a message with
trace level using the logger for the supplied class. |
void |
logTrace(String message,
Throwable cause,
Class<?> logger)
|
void |
logWarning(String message,
Class<?> logger)
Logs a message with
warn level using the logger for the supplied class. |
void |
logWarning(String message,
Throwable cause,
Class<?> logger)
|
boolean isTraceEnabled(@NotNull Class<?> logger)
trace
level is enabled for the supplied class.
This method can be used to prevent unnecessary expensive message creation if the level is not enabled.logger
- Class to be checked.true
if logging with trace
level is enabled for the supplied class, false
otherwise.void logTrace(@NotNull String message, @NotNull Class<?> logger)
trace
level using the logger for the supplied class.message
- Message to be logged.logger
- Class to find the logger to be used.void logTrace(@NotNull String message, @NotNull Throwable cause, Class<?> logger)
Throwable
with trace
level using the logger for the supplied class.message
- Message to be logged.cause
- Throwable to be logged, including its stack trace.logger
- Class to find the logger to be used.boolean isDebugEnabled(@NotNull Class<?> logger)
debug
level is enabled for the supplied class.
This method can be used to prevent unnecessary expensive message creation if the level is not enabled.logger
- Class to be checked.true
if logging with debug
level is enabled for the supplied class, false
otherwise.void logDebug(@NotNull String message, @NotNull Throwable cause, @NotNull Class<?> logger)
Throwable
with debug
level using the logger
for the supplied class.message
- Message to be logged.cause
- Throwable to be logged, including its stack trace.logger
- Class to find the logger to be used.void logDebug(@NotNull String message, @NotNull Class<?> logger)
debug
level using the logger for the supplied class.message
- Message to be logged.logger
- Class to find the logger to be used.boolean isInfoEnabled(@NotNull Class<?> logger)
info
level is enabled for the supplied class.
This method can be used to prevent unnecessary expensive message creation if the level is not enabled.logger
- Class to be checked.true
if logging with info
level is enabled for the supplied class, false
otherwise.void logInfo(@NotNull String message, @NotNull Throwable cause, @NotNull Class<?> logger)
Throwable
with info
level using the logger
for the supplied class.message
- Message to be logged.cause
- Throwable to be logged, including its stack trace.logger
- Class to find the logger to be used.void logInfo(@NotNull String message, @NotNull Class<?> logger)
info
level using the logger for the supplied class.message
- Message to be logged.logger
- Class to find the logger to be used.boolean isWarnEnabled(@NotNull Class<?> logger)
warn
level is enabled for the supplied class.
This method can be used to prevent unnecessary expensive message creation if the level is not enabled.logger
- Class to be checked.true
if logging with warn
level is enabled for the supplied class, false
otherwise.void logWarning(@NotNull String message, @NotNull Throwable cause, @NotNull Class<?> logger)
Throwable
with warn
level using the logger
for the supplied class.message
- Message to be logged.cause
- Throwable to be logged, including its stack trace.logger
- Class to find the logger to be used.void logWarning(@NotNull String message, @NotNull Class<?> logger)
warn
level using the logger for the supplied class.message
- Message to be logged.logger
- Class to find the logger to be used.void logError(@NotNull String message, @NotNull Throwable cause, @NotNull Class<?> logger)
Throwable
with error
level using the logger
for the supplied class.message
- Message to be logged.cause
- Throwable to be logged, including its stack trace.logger
- Class to find the logger to be used.void logError(@NotNull String message, @NotNull Class<?> logger)
error
level using the logger for the supplied class.message
- Message to be logged.logger
- Class to find the logger to be used.void logFatal(@NotNull String message, @NotNull Class<?> logger)
fatal
level using the logger for the supplied class.message
- Message to be logged.logger
- Class to find the logger to be used.void logFatal(@NotNull String message, @NotNull Throwable cause, @NotNull Class<?> logger)
Throwable
with fatal
level using the logger
for the supplied class.message
- Message to be logged.cause
- Throwable to be logged, including its stack trace.logger
- Class to find the logger to be used.Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210