AppendableLogger

com.phasmidsoftware.flog.AppendableLogger
case class AppendableLogger(appendable: Appendable & AutoCloseable & Flushable) extends Logger

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 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

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.

override def flush(): Unit

Method to flush the appendable.

Method to flush the appendable.

Attributes

Definition Classes
Logger -> Flushable

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.

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 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

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.

Attributes

Returns

a function (String, Throwable) => Unit.

Inherited from:
Logger
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