Logger

com.phasmidsoftware.flog.Logger
See theLogger companion trait
object Logger

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Logger.type

Members list

Value members

Concrete methods

def apply(slf4jLogger: Logger): Logger

Method to yield an slf4j-based Logger for a particular org.slf4j.Logger.

Method to yield an slf4j-based Logger for a particular org.slf4j.Logger.

Value parameters

slf4jLogger

the given org.slf4j.Logger.

Attributes

Returns

a new instance of Slf4jLogger.

def apply[T : ClassTag]: Logger

Normal method for creating an slf4j-based Logger for a particular class.

Normal method for creating an slf4j-based Logger for a particular class.

Type parameters

T

the class for which you require a Logger.

Attributes

Returns

a new instance of Slf4jLogger.

Method to create a Logger based on a LogFunction.

Method to create a Logger based on a LogFunction.

NOTE: this appears to be used only by the bitBucket method.

Value parameters

f

an instance of LogFunction.

Attributes

Returns

a new instance of GenericLogger.

def apply(sb: StringBuilder): Logger

Method to create a Logger based on a StringBuilder. This is primarily for testing.

Method to create a Logger based on a StringBuilder. This is primarily for testing.

Value parameters

sb

an instance of StringBuilder.

Attributes

Returns

a new instance of GenericLogger.

def apply(a: Appendable & AutoCloseable & Flushable): Logger

Method to create a Logger based on an Appendable, for example PrintStream, or any Writer.

Method to create a Logger based on an Appendable, for example PrintStream, or any Writer.

Value parameters

a

an instance of Appendable

Attributes

Returns

a new instance of GenericLogger.

def forClass(clazz: Class[_]): Logger

Method to yield an slf4j-based Logger for a particular class. There's no real reason to use this method directly, when you can use the apply method immediately below.

Method to yield an slf4j-based Logger for a particular class. There's no real reason to use this method directly, when you can use the apply method immediately below.

Value parameters

clazz

the Class for which you require a Logger.

Attributes

Returns

a new instance of Slf4jLogger.

Concrete fields

lazy val bitBucket: Logger

Method to create a Logger which does nothing (and does not evaluate the log message).

Method to create a Logger which does nothing (and does not evaluate the log message).

Attributes

Returns

a new instance of GenericLogger.