public interface InvokerLogger
Invoker
instances to output diagnostic messages.Invoker.setLogger(InvokerLogger)
Modifier and Type | Field and Description |
---|---|
static int |
DEBUG
The threshold for debug output.
|
static int |
ERROR
The threshold for error output.
|
static int |
FATAL
The threshold for fatal error output.
|
static int |
INFO
The threshold for info output.
|
static int |
WARN
The threshold for warn output.
|
Modifier and Type | Method and Description |
---|---|
void |
debug(String message)
Logs the specified debug message.
|
void |
debug(String message,
Throwable throwable)
Logs the specified debug message and the accompanying exception.
|
void |
error(String message)
Logs the specified error message.
|
void |
error(String message,
Throwable throwable)
Logs the specified error message and the accompanying exception.
|
void |
fatalError(String message)
Logs the specified fatal error message.
|
void |
fatalError(String message,
Throwable throwable)
Logs the specified fatal error message and the accompanying exception.
|
int |
getThreshold()
Gets the logger's threshold.
|
void |
info(String message)
Logs the specified info message.
|
void |
info(String message,
Throwable throwable)
Logs the specified info message and the accompanying exception.
|
boolean |
isDebugEnabled()
Tests whether debug output is enabled for this logger.
|
boolean |
isErrorEnabled()
Tests whether error output is enabled for this logger.
|
boolean |
isFatalErrorEnabled()
Tests whether fatal error output is enabled for this logger.
|
boolean |
isInfoEnabled()
Tests whether info output is enabled for this logger.
|
boolean |
isWarnEnabled()
Tests whether warn output is enabled for this logger.
|
void |
setThreshold(int threshold)
Sets the logger's threshold.
|
void |
warn(String message)
Logs the specified warning message.
|
void |
warn(String message,
Throwable throwable)
Logs the specified warning message and the accompanying exception.
|
static final int DEBUG
static final int INFO
static final int WARN
static final int ERROR
static final int FATAL
void debug(String message)
message
- The message to log, may be null
.void debug(String message, Throwable throwable)
message
- The message to log, may be null
.throwable
- The exception to log, may be null
.boolean isDebugEnabled()
true
if messages with priority "debug" or above are logged, false
otherwise.void info(String message)
message
- The message to log, may be null
.void info(String message, Throwable throwable)
message
- The message to log, may be null
.throwable
- The exception to log, may be null
.boolean isInfoEnabled()
true
if messages with priority "info" or above are logged, false
otherwise.void warn(String message)
message
- The message to log, may be null
.void warn(String message, Throwable throwable)
message
- The message to log, may be null
.throwable
- The exception to log, may be null
.boolean isWarnEnabled()
true
if messages with priority "warn" or above are logged, false
otherwise.void error(String message)
message
- The message to log, may be null
.void error(String message, Throwable throwable)
message
- The message to log, may be null
.throwable
- The exception to log, may be null
.boolean isErrorEnabled()
true
if messages with priority "error" or above are logged, false
otherwise.void fatalError(String message)
message
- The message to log, may be null
.void fatalError(String message, Throwable throwable)
message
- The message to log, may be null
.throwable
- The exception to log, may be null
.boolean isFatalErrorEnabled()
true
if messages with priority "fatal" or above are logged, false
otherwise.void setThreshold(int threshold)
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.