Constructor and Description |
---|
LoggerProvider(ILogger logger)
Constructs the provider with the given logger.
|
LoggerProvider(ILogger logger,
LogLevel defaultLevel,
LogLevel debugLevel)
Constructs the provider with the given logger and logging levels.
|
Modifier and Type | Method and Description |
---|---|
void |
debug(java.lang.String message)
Logs the message at the debug logging level.
|
void |
debug(java.lang.String message,
java.lang.Exception e)
Formats and logs the message and exception at the debug logging level.
|
LogLevel |
getDebugLevel() |
LogLevel |
getDefaultLevel() |
ILogger |
getLogger() |
void |
log(LogLevel level,
java.lang.String message)
Logs the message at the given logging level.
|
void |
log(LogLevel level,
java.lang.String message,
java.lang.Exception e)
Formats and logs the message and exception at the given logging level.
|
void |
log(java.lang.String message)
Logs the message at the default logging level.
|
void |
log(java.lang.String message,
java.lang.Exception e)
Formats and logs the message and exception at the default logging level.
|
public LoggerProvider(ILogger logger)
The default logging level is set to LogLevel.INFO
and the debug logging level is set to
LogLevel.DEBUG
.
logger
- the loggerpublic void log(java.lang.String message)
message
- the messagepublic void debug(java.lang.String message)
message
- the messagepublic void log(LogLevel level, java.lang.String message)
level
- the logging levelmessage
- the messagepublic void log(java.lang.String message, java.lang.Exception e)
message
- the messagee
- the exceptionpublic void debug(java.lang.String message, java.lang.Exception e)
message
- the messagee
- the exceptionpublic void log(LogLevel level, java.lang.String message, java.lang.Exception e)
level
- the logging levelmessage
- the messagee
- the exceptionpublic ILogger getLogger()
public LogLevel getDefaultLevel()
public LogLevel getDebugLevel()