Class NoOpLog
- All Implemented Interfaces:
- Serializable,- Log
- Direct Known Subclasses:
- SimpleLog
Log that throws away all messages.- Since:
- 5.0
- Author:
- Juergen Hoeller (for the spring-jclvariant)
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidLogs a message with debug log level.voidLogs an error with debug log level.voidLogs a message with error log level.voidLogs an error with error log level.voidLogs a message with fatal log level.voidLogs an error with fatal log level.voidLogs a message with info log level.voidLogs an error with info log level.booleanIs debug logging currently enabled?booleanIs error logging currently enabled?booleanIs fatal logging currently enabled?booleanIs info logging currently enabled?booleanIs trace logging currently enabled?booleanIs warn logging currently enabled?voidLogs a message with trace log level.voidLogs an error with trace log level.voidLogs a message with warn log level.voidLogs an error with warn log level.
- 
Constructor Details- 
NoOpLogpublic NoOpLog()
- 
NoOpLog
 
- 
- 
Method Details- 
isFatalEnabledpublic boolean isFatalEnabled()Description copied from interface: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.- Specified by:
- isFatalEnabledin interface- Log
- Returns:
- true if fatal is enabled in the underlying logger.
 
- 
isErrorEnabledpublic boolean isErrorEnabled()Description copied from interface: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.- Specified by:
- isErrorEnabledin interface- Log
- Returns:
- true if error is enabled in the underlying logger.
 
- 
isWarnEnabledpublic boolean isWarnEnabled()Description copied from interface: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.- Specified by:
- isWarnEnabledin interface- Log
- Returns:
- true if warn is enabled in the underlying logger.
 
- 
isInfoEnabledpublic boolean isInfoEnabled()Description copied from interface: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.- Specified by:
- isInfoEnabledin interface- Log
- Returns:
- true if info is enabled in the underlying logger.
 
- 
isDebugEnabledpublic boolean isDebugEnabled()Description copied from interface: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.- Specified by:
- isDebugEnabledin interface- Log
- Returns:
- true if debug is enabled in the underlying logger.
 
- 
isTraceEnabledpublic boolean isTraceEnabled()Description copied from interface: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.- Specified by:
- isTraceEnabledin interface- Log
- Returns:
- true if trace is enabled in the underlying logger.
 
- 
fatalDescription copied from interface:LogLogs a message with fatal log level.
- 
fatalDescription copied from interface:LogLogs an error with fatal log level.
- 
errorDescription copied from interface:LogLogs a message with error log level.
- 
errorDescription copied from interface:LogLogs an error with error log level.
- 
warnDescription copied from interface:LogLogs a message with warn log level.
- 
warnDescription copied from interface:LogLogs an error with warn log level.
- 
infoDescription copied from interface:LogLogs a message with info log level.
- 
infoDescription copied from interface:LogLogs an error with info log level.
- 
debugDescription copied from interface:LogLogs a message with debug log level.
- 
debugDescription copied from interface:LogLogs an error with debug log level.
- 
traceDescription copied from interface:LogLogs a message with trace log level.
- 
traceDescription copied from interface:LogLogs an error with trace log level.
 
-