AppendableLogger
Class to represent a Logger which is based on an Appendable (which must also be AutoCloseable and Flushable.
Value parameters
- appendable
-
an instance of Appendable with is also AutoCloseable and Flushable.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Loggertrait Flushabletrait AutoCloseableclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Method to close the appendable. NOTE: we close it by flushing (and nothing else). TODO figure out why it doesn't work if we try to close it too.
Method to close the appendable. NOTE: we close it by flushing (and nothing else). TODO figure out why it doesn't work if we try to close it too.
Attributes
- Definition Classes
-
Logger -> AutoCloseable
Returns a LogFunction for debug-level logging. The LogFunction allows debug-level messages to be logged to the specified Appendable provided during the creation of the instance.
Returns a LogFunction for debug-level logging. The LogFunction allows debug-level messages to be logged to the specified Appendable provided during the creation of the instance.
Attributes
- Returns
-
a LogFunction instance configured for debug-level logging.
Method to flush the appendable.
Provides the info-level logging function for the logger.
Provides the info-level logging function for the logger.
Attributes
- Returns
-
a LogFunction associated with the info logging level, wrapping the provided Appendable instance.
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
Any
Method to return a logging function specifically for trace-level messages.
Method to return a logging function specifically for trace-level messages.
Attributes
- Returns
-
an instance of LogFunction created using the configured Appendable.
Provides a logging function for warning-level messages.
Provides a logging function for warning-level messages.
Attributes
- Returns
-
a LogFunction instance associated with the logger's appendable, enabling logging of warning messages.
Inherited methods
Method to furnish a (String, Throwable) -> Unit for dealing with errors in the logs. This default implementation is over-ridden for Slf4J-based loggers.
Method to furnish a (String, Throwable) -> Unit for dealing with errors in the logs. This default implementation is over-ridden for Slf4J-based loggers.
Attributes
- Returns
-
a function (String, Throwable) => Unit.
- Inherited from:
- Logger
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