StringBuilderLogger
Class to represent a Logger which is based on a StringBuilder.
Value parameters
- sb
-
an instance of StringBuilder.
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
Method to provide a debug-level logging function.
Method to provide a debug-level logging function.
Attributes
- Returns
-
an instance of LogFunction configured for debug-level logging.
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.
NOTE: there is a null coded here for the situation where error is called without a Throwable. It's justified because it is simply following the Java calling convention.
Attributes
- Returns
-
a function (String, Throwable) => Unit.
- Definition Classes
Method to flush the appendable.
Method to provide a LogFunction configured for logging informational messages.
Method to provide a LogFunction configured for logging informational messages.
Attributes
- Returns
-
a LogFunction instance initialized with the provided StringBuilder.
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 retrieve a LogFunction for trace-level logging using the associated StringBuilder.
Method to retrieve a LogFunction for trace-level logging using the associated StringBuilder.
Attributes
- Returns
-
a LogFunction that logs trace-level messages into the StringBuilder.
Method to log a warning message using a StringBuilder-based log function.
Method to log a warning message using a StringBuilder-based log function.
Attributes
- Returns
-
an instance of LogFunction configured to append warning messages to a StringBuilder.
Inherited methods
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