StringBuilderLogger

com.phasmidsoftware.flog.StringBuilderLogger
case class StringBuilderLogger(sb: StringBuilder) extends Logger

Class to represent a Logger which is based on a StringBuilder.

Value parameters

sb

an instance of StringBuilder.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Logger
trait Flushable
trait AutoCloseable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def close(): Unit

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.

override def error: (String, Throwable) => Unit

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
override def flush(): Unit

Method to flush the appendable.

Method to flush the appendable.

Attributes

Definition Classes
Logger -> Flushable

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.

override def toString: String

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

def isDebugEnabled: Boolean

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
def isInfoEnabled: Boolean

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
def isTraceEnabled: Boolean

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
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product