Logger[A: A]
class val Logger[A: A]
Constructors
create
new val create( level: (Fine val | Info val | Warn val | Error val), out: OutStream tag, f: {(A): String}[A] val, formatter: LogFormatter val = reference) : Logger[A] val^
Parameters
- level: (Fine val | Info val | Warn val | Error val)
- out: OutStream tag
- f: {(A): String}[A] val
- formatter: LogFormatter val = reference
Returns
- Logger[A] val^
Public Functions
apply
fun box apply( level: (Fine val | Info val | Warn val | Error val)) : Bool val
Parameters
Returns
- Bool val
log
fun box log( value: A, loc: SourceLoc val = __loc) : Bool val
Parameters
- value: A
- loc: SourceLoc val = __loc
Returns
- Bool val
© 2016-2020, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/logger-Logger