Skip to content

Logger[A: A]

[Source]

Logs values of type A, converting them to strings via a supplied lambda.

class val Logger[A: A]

Constructors

create

[Source]

new val create(
  level: LogLevel,
  out: OutStream tag,
  f: {(A): String}[A] val,
  formatter: LogFormatter val = DefaultLogFormatter)
: Logger[A] val^

Parameters

Returns


Public Functions

apply

[Source]

fun box apply(
  level: LogLevel)
: Bool val

Parameters

Returns


log

[Source]

fun box log(
  value: A,
  loc: SourceLoc val = __loc)
: Bool val

Parameters

Returns