接口 Logger
-
- 所有已知实现类:
FailsafeLogger
,JclLogger
,JdkLogger
,Log4jLogger
,Slf4jLogger
public interface Logger
Logger interfaceThis interface is referred from commons-logging
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 void
debug(String msg)
Logs a message with debug log level.void
debug(String msg, Throwable e)
Logs an error with debug log level.void
debug(Throwable e)
Logs an error with debug log level.void
error(String msg)
Logs a message with error log level.void
error(String msg, Throwable e)
Logs an error with error log level.void
error(Throwable e)
Logs an error with error log level.void
info(String msg)
Logs a message with info log level.void
info(String msg, Throwable e)
Logs an error with info log level.void
info(Throwable e)
Logs an error with info log level.boolean
isDebugEnabled()
Is debug logging currently enabled?boolean
isErrorEnabled()
Is error logging currently enabled?boolean
isInfoEnabled()
Is info logging currently enabled?boolean
isTraceEnabled()
Is trace logging currently enabled?boolean
isWarnEnabled()
Is warn logging currently enabled?void
trace(String msg)
Logs a message with trace log level.void
trace(String msg, Throwable e)
Logs an error with trace log level.void
trace(Throwable e)
Logs an error with trace log level.void
warn(String msg)
Logs a message with warn log level.void
warn(String msg, Throwable e)
Logs a message with warn log level.void
warn(Throwable e)
Logs a message with warn log level.
-
-
-
方法详细资料
-
trace
void trace(String msg)
Logs a message with trace log level.- 参数:
msg
- log this message
-
trace
void trace(Throwable e)
Logs an error with trace log level.- 参数:
e
- log this cause
-
trace
void trace(String msg, Throwable e)
Logs an error with trace log level.- 参数:
msg
- log this messagee
- log this cause
-
debug
void debug(String msg)
Logs a message with debug log level.- 参数:
msg
- log this message
-
debug
void debug(Throwable e)
Logs an error with debug log level.- 参数:
e
- log this cause
-
debug
void debug(String msg, Throwable e)
Logs an error with debug log level.- 参数:
msg
- log this messagee
- log this cause
-
info
void info(String msg)
Logs a message with info log level.- 参数:
msg
- log this message
-
info
void info(Throwable e)
Logs an error with info log level.- 参数:
e
- log this cause
-
info
void info(String msg, Throwable e)
Logs an error with info log level.- 参数:
msg
- log this messagee
- log this cause
-
warn
void warn(String msg)
Logs a message with warn log level.- 参数:
msg
- log this message
-
warn
void warn(Throwable e)
Logs a message with warn log level.- 参数:
e
- log this message
-
warn
void warn(String msg, Throwable e)
Logs a message with warn log level.- 参数:
msg
- log this messagee
- log this cause
-
error
void error(String msg)
Logs a message with error log level.- 参数:
msg
- log this message
-
error
void error(Throwable e)
Logs an error with error log level.- 参数:
e
- log this cause
-
error
void error(String msg, Throwable e)
Logs an error with error log level.- 参数:
msg
- log this messagee
- log this cause
-
isTraceEnabled
boolean isTraceEnabled()
Is trace logging currently enabled?- 返回:
- true if trace is enabled
-
isDebugEnabled
boolean isDebugEnabled()
Is debug logging currently enabled?- 返回:
- true if debug is enabled
-
isInfoEnabled
boolean isInfoEnabled()
Is info logging currently enabled?- 返回:
- true if info is enabled
-
isWarnEnabled
boolean isWarnEnabled()
Is warn logging currently enabled?- 返回:
- true if warn is enabled
-
isErrorEnabled
boolean isErrorEnabled()
Is error logging currently enabled?- 返回:
- true if error is enabled
-
-