Logger

com.phasmidsoftware.flog.Logger
See theLogger companion object
trait Logger extends AutoCloseable, Flushable

Trait to represent a Logger.

Attributes

Companion
object
Graph
Supertypes
trait Flushable
trait AutoCloseable
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

Method to furnish a LogFunction corresponding to the debug level of logging.

Method to furnish a LogFunction corresponding to the debug level of logging.

Attributes

Returns

a LogFunction

Method to furnish a LogFunction corresponding to the info level of logging.

Method to furnish a LogFunction corresponding to the info level of logging.

Attributes

Returns

a LogFunction

Method to furnish a LogFunction corresponding to the trace level of logging.

Method to furnish a LogFunction corresponding to the trace level of logging.

Attributes

Returns

a LogFunction

Method to furnish a LogFunction corresponding to the warn level of logging.

Method to furnish a LogFunction corresponding to the warn level of logging.

Attributes

Returns

a LogFunction

Concrete methods

def close(): Unit

Method to close. By default, this does nothing.

Method to close. By default, this does nothing.

Attributes

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.

def flush(): Unit

Method to flush. By default, this does nothing.

Method to flush. By default, this does nothing.

Attributes

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.

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.

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

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.