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-jcl
variant) - See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Logs a message with debug log level.void
Logs an error with debug log level.void
Logs a message with error log level.void
Logs an error with error log level.void
Logs a message with fatal log level.void
Logs an error with fatal log level.void
Logs a message with info log level.void
Logs an error with info log level.boolean
Is debug logging currently enabled?boolean
Is error logging currently enabled?boolean
Is fatal logging currently enabled?boolean
Is info logging currently enabled?boolean
Is trace logging currently enabled?boolean
Is warn logging currently enabled?void
Logs a message with trace log level.void
Logs an error with trace log level.void
Logs a message with warn log level.void
Logs an error with warn log level.
-
Constructor Details
-
NoOpLog
public NoOpLog() -
NoOpLog
-
-
Method Details
-
isFatalEnabled
public boolean isFatalEnabled()Description copied from interface:Log
Is fatal logging currently enabled?Call this method to prevent having to perform expensive operations (for example,
String
concatenation) when the log level is more than fatal.- Specified by:
isFatalEnabled
in interfaceLog
- Returns:
- true if fatal is enabled in the underlying logger.
-
isErrorEnabled
public boolean isErrorEnabled()Description copied from interface:Log
Is error logging currently enabled?Call this method to prevent having to perform expensive operations (for example,
String
concatenation) when the log level is more than error.- Specified by:
isErrorEnabled
in interfaceLog
- Returns:
- true if error is enabled in the underlying logger.
-
isWarnEnabled
public boolean isWarnEnabled()Description copied from interface:Log
Is warn logging currently enabled?Call this method to prevent having to perform expensive operations (for example,
String
concatenation) when the log level is more than warn.- Specified by:
isWarnEnabled
in interfaceLog
- Returns:
- true if warn is enabled in the underlying logger.
-
isInfoEnabled
public boolean isInfoEnabled()Description copied from interface:Log
Is info logging currently enabled?Call this method to prevent having to perform expensive operations (for example,
String
concatenation) when the log level is more than info.- Specified by:
isInfoEnabled
in interfaceLog
- Returns:
- true if info is enabled in the underlying logger.
-
isDebugEnabled
public boolean isDebugEnabled()Description copied from interface:Log
Is debug logging currently enabled?Call this method to prevent having to perform expensive operations (for example,
String
concatenation) when the log level is more than debug.- Specified by:
isDebugEnabled
in interfaceLog
- Returns:
- true if debug is enabled in the underlying logger.
-
isTraceEnabled
public boolean isTraceEnabled()Description copied from interface:Log
Is trace logging currently enabled?Call this method to prevent having to perform expensive operations (for example,
String
concatenation) when the log level is more than trace.- Specified by:
isTraceEnabled
in interfaceLog
- Returns:
- true if trace is enabled in the underlying logger.
-
fatal
Description copied from interface:Log
Logs a message with fatal log level. -
fatal
Description copied from interface:Log
Logs an error with fatal log level. -
error
Description copied from interface:Log
Logs a message with error log level. -
error
Description copied from interface:Log
Logs an error with error log level. -
warn
Description copied from interface:Log
Logs a message with warn log level. -
warn
Description copied from interface:Log
Logs an error with warn log level. -
info
Description copied from interface:Log
Logs a message with info log level. -
info
Description copied from interface:Log
Logs an error with info log level. -
debug
Description copied from interface:Log
Logs a message with debug log level. -
debug
Description copied from interface:Log
Logs an error with debug log level. -
trace
Description copied from interface:Log
Logs a message with trace log level. -
trace
Description copied from interface:Log
Logs an error with trace log level.
-