LogFunction

com.phasmidsoftware.flog.LogFunction
See theLogFunction companion trait
object LogFunction

Attributes

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

Members list

Value members

Concrete methods

def apply(f: String => Any): LogFunction

Method to create a LogFunction based on a function String => Any.

Method to create a LogFunction based on a function String => Any.

Value parameters

f

the given function.

Attributes

Returns

a new instance of LogFunction.

def apply(sb: StringBuilder): LogFunction

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

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

Value parameters

sb

an instance of StringBuilder.

Attributes

Returns

a new instance of GenericLogFunction.

def apply(a: Appendable): LogFunction

Method to create a LogFunction based on an Appendable, such as PrintStream, Writer.

Method to create a LogFunction based on an Appendable, such as PrintStream, Writer.

Value parameters

a

an instance of Appendable.

Attributes

Returns

a new instance of GenericLogFunction.

Concrete fields

A LogFunction which does nothing (and does not evaluate the log message).

A LogFunction which does nothing (and does not evaluate the log message).

Attributes