Slf4jLogger
Class to create a Logger based on Slf4j (simple logging facade for Java).
Value parameters
- logger
-
an instance of org.slf4j.Logger.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Loggertrait Flushabletrait AutoCloseableclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Provides a debug-level logging function.
Provides a debug-level logging function.
Attributes
- Returns
-
a LogFunction that logs messages at the debug level if debugging is enabled.
Logs an error message and an associated throwable if error-level logging is enabled. Falls back to the super implementation if error-level logging is not enabled in the underlying logger.
Logs an error message and an associated throwable if error-level logging is enabled. Falls back to the super implementation if error-level logging is not enabled in the underlying logger.
Attributes
- Returns
-
a function that takes a message of type String and a Throwable, and logs them at the error level.
- Definition Classes
Provides a logging function for messages at the "info" level. The function logs the provided message if the logger's info level is enabled.
Provides a logging function for messages at the "info" level. The function logs the provided message if the logger's info level is enabled.
Attributes
- Returns
-
a LogFunction that can log messages conditionally based on the info logging level.
Provides a string representation of the object.
Provides a string representation of the object.
Attributes
- Returns
-
A string identifying the object as "<org.slf4j.Logger>".
- Definition Classes
-
Any
Provides a logging function for trace-level log messages. The function executes the logging operation only if trace-level logging is enabled for the underlying SLF4J logger.
Provides a logging function for trace-level log messages. The function executes the logging operation only if trace-level logging is enabled for the underlying SLF4J logger.
Attributes
- Returns
-
an instance of LogFunction that logs a given call-by-name string at the trace logging level or does nothing if trace logging is not enabled.
Provides a log function for warning-level messages. If the underlying logger has warning enabled, it logs the message; otherwise, it does nothing.
Provides a log function for warning-level messages. If the underlying logger has warning enabled, it logs the message; otherwise, it does nothing.
Attributes
- Returns
-
a LogFunction instance which logs warning messages.
Inherited methods
Method to close. By default, this does nothing.
Method to flush. By default, this does nothing.
Checks if debug level logging is enabled.
Checks if debug level logging is enabled.
Attributes
- Returns
-
true if debug logging is enabled; false otherwise.
- Inherited from:
- Logger
Determines whether the logging level for informational messages is enabled.
Determines whether the logging level for informational messages is enabled.
Attributes
- Returns
-
true if informational logging is enabled, otherwise false.
- Inherited from:
- Logger
Checks if trace level logging is enabled.
Checks if trace level logging is enabled.
Attributes
- Returns
-
true if trace level logging is enabled, otherwise false
- Inherited from:
- Logger
Method to furnish a LogFunction that does nothing and which does not cause evaluation of the message.
Method to furnish a LogFunction that does nothing and which does not cause evaluation of the message.
Attributes
- Returns
-
a LogFunction which does nothing.
- Inherited from:
- Logger
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product