|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Log
An interface to logging system implementations based on seven logging levels:
Nested Class Summary | |
---|---|
static class |
Log.Level
The log level. |
Field Summary | |
---|---|
static String |
INTERNAL_ERROR
An internal error message. |
Fields inherited from interface org.slf4j.Logger |
---|
ROOT_LOGGER_NAME |
Method Summary | |
---|---|
void |
access(long time,
String msg,
Object arg)
Logs an access message. |
void |
debug(Object msg)
Logs a debug message. |
void |
debug(String msg,
Object arg)
Logs a debug message with an argument. |
void |
error(Object msg)
Logs an error message. |
void |
error(String msg,
Object arg)
Logs an error message with an argument. |
void |
error(String msg,
Object arg,
Throwable cause)
Logs an error message with an argument and reason. |
void |
fatal(Object msg)
Logs a fatal message. |
void |
fatal(String msg,
Object arg)
Logs a fatal message with an argument. |
void |
fatal(String msg,
Object arg,
Throwable cause)
Logs a fatal message with an argument and reason. |
void |
fatal(String msg,
Throwable cause)
Logs a fatal message with a reason. |
Throwable |
getCause(Throwable cause)
Gets the relevant cause of the specified throwable. |
Object |
getContext()
Gets the context of this log. |
Log.Level |
getLevel()
Gets the log level. |
Object |
getLogger()
Gets the logger of this log. |
String |
getLoggerName()
Gets the logger name of this log. |
void |
info(Object msg)
Logs an info message. |
void |
info(String msg,
Object arg)
Logs an info message with an argument. |
boolean |
isAccessEnabled()
Checks whether access is enabled. |
boolean |
isActive()
Checks whether this log is activated. |
boolean |
isDebugEnabled()
Checks whether debug is enabled. |
boolean |
isErrorEnabled()
Checks whether error is enabled. |
boolean |
isFatalEnabled()
Checks whether fatal is enabled. |
boolean |
isInfoEnabled()
Checks whether info is enabled. |
boolean |
isLogEnabled(Log.Level level)
Checks whether the specified level is enabled. |
boolean |
isTraceEnabled()
Checks whether trace is enabled. |
boolean |
isWarnEnabled()
Checks whether warn is enabled. |
String |
localize(Throwable target,
Object... localization)
Localizes the specified exception. |
void |
log(Log.Level level,
long time,
String msg,
Object arg)
Logs a message with a specific level, date and argument. |
void |
log(Log.Level level,
long time,
String msg,
Object arg,
Throwable cause)
Logs a message with a specific level, date, argument and reason. |
void |
log(Log.Level level,
long time,
String msg,
Throwable cause)
Logs a message with a specific level, date and reason. |
void |
log(Log.Level level,
Object msg)
Logs a message with a specific level. |
void |
log(Log.Level level,
String msg,
Object arg)
Logs a message with a specific level and argument. |
void |
log(Log.Level level,
String msg,
Object arg,
Throwable cause)
Logs a message with a specific level, argument and reason. |
void |
log(Log.Level level,
String msg,
Throwable cause)
Logs a message with a specific level and reason. |
void |
trace(Object msg)
Logs a trace message. |
void |
trace(String msg,
Object arg)
Logs a trace message with an argument. |
void |
warn(Object msg)
Logs a warn message. |
void |
warn(String msg,
Object arg)
Logs a warn message with an argument. |
void |
warn(String msg,
Object arg,
Throwable cause)
Logs a warn message with an argument and reason. |
Methods inherited from interface org.slf4j.Logger |
---|
debug, debug, debug, debug, debug, debug, debug, debug, debug, error, error, error, error, error, error, error, error, error, getName, info, info, info, info, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, trace, trace, trace, trace, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn, warn, warn, warn, warn |
Field Detail |
---|
static final String INTERNAL_ERROR
Method Detail |
---|
boolean isTraceEnabled()
isTraceEnabled
in interface org.slf4j.Logger
boolean isDebugEnabled()
isDebugEnabled
in interface org.slf4j.Logger
boolean isInfoEnabled()
isInfoEnabled
in interface org.slf4j.Logger
boolean isWarnEnabled()
isWarnEnabled
in interface org.slf4j.Logger
boolean isErrorEnabled()
isErrorEnabled
in interface org.slf4j.Logger
boolean isFatalEnabled()
boolean isAccessEnabled()
boolean isLogEnabled(Log.Level level)
level
- the logging level.
Log.Level getLevel()
void trace(Object msg)
msg
- the message to log.void trace(String msg, Object arg)
trace
in interface org.slf4j.Logger
msg
- the message to log.arg
- the argument or cause.void debug(Object msg)
msg
- the message to log.void debug(String msg, Object arg)
debug
in interface org.slf4j.Logger
msg
- the message to log.arg
- the argument or cause.void info(Object msg)
msg
- the message to log.void info(String msg, Object arg)
info
in interface org.slf4j.Logger
msg
- the message to log.arg
- the argument or cause.void warn(Object msg)
msg
- the message to log.void warn(String msg, Object arg)
warn
in interface org.slf4j.Logger
msg
- the message to log.arg
- the argument or cause.void warn(String msg, Object arg, Throwable cause)
msg
- the message to log.arg
- the argument.cause
- the cause.void error(Object msg)
msg
- the message to log.void error(String msg, Object arg)
error
in interface org.slf4j.Logger
msg
- the message to log.arg
- the argument or cause.void error(String msg, Object arg, Throwable cause)
msg
- the message to log.arg
- the argument.cause
- the cause.void fatal(Object msg)
msg
- the message to log.void fatal(String msg, Object arg)
msg
- the message to log.arg
- the argument or cause.void fatal(String msg, Throwable cause)
msg
- the message to log.cause
- the cause.void fatal(String msg, Object arg, Throwable cause)
msg
- the message to log.arg
- the argument.cause
- the cause.void access(long time, String msg, Object arg)
time
- the time of the event.msg
- the message to log.arg
- the argument.void log(Log.Level level, Object msg)
level
- the level of the message.msg
- the message to log.void log(Log.Level level, String msg, Object arg)
level
- the level of the message.msg
- the message to log.arg
- the argument or cause.void log(Log.Level level, String msg, Throwable cause)
level
- the level of the message.msg
- the message to log.cause
- the cause.void log(Log.Level level, String msg, Object arg, Throwable cause)
level
- the level of the message.msg
- the message to log.arg
- the argument.cause
- the cause.void log(Log.Level level, long time, String msg, Object arg)
level
- the level of the message.time
- the time of the event.msg
- the message to log.arg
- the argument or cause.void log(Log.Level level, long time, String msg, Throwable cause)
level
- the level of the message.time
- the time of the event.msg
- the message to log.cause
- the cause.void log(Log.Level level, long time, String msg, Object arg, Throwable cause)
level
- the level of the message.time
- the time of the event.msg
- the message to log.arg
- the argument.cause
- the cause.String localize(Throwable target, Object... localization)
The message is constructed by using the exception type and non-localized message as a key for the localized message. If such a message can't be found, the plain exception type is used as the key. If such a message is found and it ends with a colon, the non-localized message is appended to it. If such a message is not found, the non-localized message is returned unmodified.
target
- the exception.localization
- the localization.
String getLoggerName()
Object getLogger()
Object getContext()
Throwable getCause(Throwable cause)
cause
- the cause throwable.
boolean isActive()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |