GenericLogger

com.phasmidsoftware.flog.GenericLogger
case class GenericLogger(logFunction: LogFunction) extends Logger

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

Value parameters

logFunction

the LogFunction.

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

Returns the LogFunction associated with the debug logging level.

Returns the LogFunction associated with the debug logging level.

Attributes

Returns

the LogFunction for debug level logging.

Provides the logging functionality for informational level logs.

Provides the logging functionality for informational level logs.

Attributes

Returns

the LogFunction implementation associated with the informational level for the logger.

Returns the LogFunction associated with this logger for logging trace-level messages.

Returns the LogFunction associated with this logger for logging trace-level messages.

Attributes

Returns

the LogFunction instance for trace-level logging.

Returns the logging function for the warning log level.

Returns the logging function for the warning log level.

Attributes

Returns

the LogFunction instance associated with the warning log level.

Inherited methods

def close(): Unit

Method to close. By default, this does nothing.

Method to close. By default, this does nothing.

Attributes

Inherited from:
Logger
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 flush(): Unit

Method to flush. By default, this does nothing.

Method to flush. By default, this does nothing.

Attributes

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