public interface Log
Modifier and Type | Field and Description |
---|---|
static short |
ERROR |
static short |
FATAL |
static short |
INFO |
static short |
TRACE |
static short |
WARN |
Modifier and Type | Method and Description |
---|---|
void |
error(Object o)
Write out a log message at the
ERROR
level with the stringification of o as the body
of the message, also outputting t to the log. |
void |
error(Object o,
Throwable t)
Write out a log message at the
ERROR
level with the stringification of o as the body
of the message, also outputting t to the log. |
void |
fatal(Object o)
Write out a log message at the
FATAL
level with the stringification of o as the body
of the message, also outputting t to the log. |
void |
fatal(Object o,
Throwable t)
Write out a log message at the
FATAL
level with the stringification of o as the body
of the message, also outputting t to the log. |
void |
info(Object o)
Write out a log message at the
INFO
level with the stringification of o as the body
of the message, also outputting t to the log. |
void |
info(Object o,
Throwable t)
Write out a log message at the
INFO
level with the stringification of o as the body
of the message, also outputting t to the log. |
boolean |
isErrorEnabled()
Returns if the
ERROR log level is enabled. |
boolean |
isFatalEnabled()
Returns if the
FATAL log level is enabled. |
boolean |
isInfoEnabled()
Returns if the
INFO log level is enabled. |
boolean |
isTraceEnabled()
Returns if the
TRACE log level is enabled. |
boolean |
isWarnEnabled()
Returns if the
WARN log level is enabled. |
void |
trace(Object o)
Write out a log message at the
TRACE
level with the stringification of o as the body
of the message. |
void |
trace(Object o,
Throwable t)
Write out a log message at the
TRACE
level with the stringification of o as the body
of the message, also outputting t to the log. |
void |
warn(Object o)
Write out a log message at the
WARN
level with the stringification of o as the body
of the message, also outputting t to the log. |
void |
warn(Object o,
Throwable t)
Write out a log message at the
WARN
level with the stringification of o as the body
of the message, also outputting t to the log. |
static final short TRACE
static final short INFO
static final short WARN
static final short ERROR
static final short FATAL
boolean isTraceEnabled()
TRACE
log level is enabled.boolean isInfoEnabled()
INFO
log level is enabled.boolean isWarnEnabled()
WARN
log level is enabled.boolean isErrorEnabled()
ERROR
log level is enabled.boolean isFatalEnabled()
FATAL
log level is enabled.void trace(Object o)
TRACE
level with the stringification of o
as the body
of the message.void trace(Object o, Throwable t)
TRACE
level with the stringification of o
as the body
of the message, also outputting t
to the log.void info(Object o)
INFO
level with the stringification of o
as the body
of the message, also outputting t
to the log.void info(Object o, Throwable t)
INFO
level with the stringification of o
as the body
of the message, also outputting t
to the log.void warn(Object o)
WARN
level with the stringification of o
as the body
of the message, also outputting t
to the log.void warn(Object o, Throwable t)
WARN
level with the stringification of o
as the body
of the message, also outputting t
to the log.void error(Object o)
ERROR
level with the stringification of o
as the body
of the message, also outputting t
to the log.void error(Object o, Throwable t)
ERROR
level with the stringification of o
as the body
of the message, also outputting t
to the log.void fatal(Object o)
FATAL
level with the stringification of o
as the body
of the message, also outputting t
to the log.Copyright © 2006–2022 Apache Software Foundation. All rights reserved.