类 NoOpLog
- java.lang.Object
- org.apache.commons.logging.impl.NoOpLog
- 所有已实现的接口:
Serializable,Log
- 直接已知子类:
SimpleLog
public class NoOpLog extends Object implements Log, Serializable
Trivial implementation ofLogthat throws away all messages.- 从以下版本开始:
- 5.0
- 作者:
- Juergen Hoeller (for the
spring-jclvariant) - 另请参阅:
- 序列化表格
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voiddebug(Object message)Logs a message with debug log level.voiddebug(Object message, Throwable t)Logs an error with debug log level.voiderror(Object message)Logs a message with error log level.voiderror(Object message, Throwable t)Logs an error with error log level.voidfatal(Object message)Logs a message with fatal log level.voidfatal(Object message, Throwable t)Logs an error with fatal log level.voidinfo(Object message)Logs a message with info log level.voidinfo(Object message, Throwable t)Logs an error with info log level.booleanisDebugEnabled()Is debug logging currently enabled?booleanisErrorEnabled()Is error logging currently enabled?booleanisFatalEnabled()Is fatal logging currently enabled?booleanisInfoEnabled()Is info logging currently enabled?booleanisTraceEnabled()Is trace logging currently enabled?booleanisWarnEnabled()Is warn logging currently enabled?voidtrace(Object message)Logs a message with trace log level.voidtrace(Object message, Throwable t)Logs an error with trace log level.voidwarn(Object message)Logs a message with warn log level.voidwarn(Object message, Throwable t)Logs an error with warn log level.
方法详细资料
isFatalEnabled
public boolean isFatalEnabled()
从接口复制的说明:LogIs fatal logging currently enabled?Call this method to prevent having to perform expensive operations (for example,
Stringconcatenation) when the log level is more than fatal.- 指定者:
isFatalEnabled在接口中Log- 返回:
- true if fatal is enabled in the underlying logger.
isErrorEnabled
public boolean isErrorEnabled()
从接口复制的说明:LogIs error logging currently enabled?Call this method to prevent having to perform expensive operations (for example,
Stringconcatenation) when the log level is more than error.- 指定者:
isErrorEnabled在接口中Log- 返回:
- true if error is enabled in the underlying logger.
isWarnEnabled
public boolean isWarnEnabled()
从接口复制的说明:LogIs warn logging currently enabled?Call this method to prevent having to perform expensive operations (for example,
Stringconcatenation) when the log level is more than warn.- 指定者:
isWarnEnabled在接口中Log- 返回:
- true if warn is enabled in the underlying logger.
isInfoEnabled
public boolean isInfoEnabled()
从接口复制的说明:LogIs info logging currently enabled?Call this method to prevent having to perform expensive operations (for example,
Stringconcatenation) when the log level is more than info.- 指定者:
isInfoEnabled在接口中Log- 返回:
- true if info is enabled in the underlying logger.
isDebugEnabled
public boolean isDebugEnabled()
从接口复制的说明:LogIs debug logging currently enabled?Call this method to prevent having to perform expensive operations (for example,
Stringconcatenation) when the log level is more than debug.- 指定者:
isDebugEnabled在接口中Log- 返回:
- true if debug is enabled in the underlying logger.
isTraceEnabled
public boolean isTraceEnabled()
从接口复制的说明:LogIs trace logging currently enabled?Call this method to prevent having to perform expensive operations (for example,
Stringconcatenation) when the log level is more than trace.- 指定者:
isTraceEnabled在接口中Log- 返回:
- true if trace is enabled in the underlying logger.
fatal
public void fatal(Object message, Throwable t)
从接口复制的说明:LogLogs an error with fatal log level.
error
public void error(Object message, Throwable t)
从接口复制的说明:LogLogs an error with error log level.
debug
public void debug(Object message, Throwable t)
从接口复制的说明:LogLogs an error with debug log level.