Logger

object Logger
Companion:
class
class Object
trait Matchable
class Any
Logger.type

Value members

Concrete methods

def apply(traceFn: Throwable => Unit, debugFn: String => Unit, infoFn: String => Unit, warnFn: String => Unit, errorFn: String => Unit): Logger

A logger that uses the supplied functions as implementations for debug, info, warn and error.

A logger that uses the supplied functions as implementations for debug, info, warn and error.

Value parameters:
debugFn

The function to call when debug is called.

errorFn

The function to call when error is called.

infoFn

The function to call when info is called.

warnFn

The function to call when warn is called.

Returns:

A logger that uses the supplied functions as implementations for debug, info, warn and error.

A Logger that writes info and warn messages to stdout, and error, debug and trace messages to stderr.

A Logger that writes info and warn messages to stdout, and error, debug and trace messages to stderr.

A 'Logger' that discards all messagess

A 'Logger' that discards all messagess

Turns the given logger into a ProcessLogger.

Turns the given logger into a ProcessLogger.