W3cubDocs

/Pony

LogFormatter

[Source]

Interface required to implement custom log formatting.

  • msg is the logged message
  • loc is the location log was called from

See DefaultLogFormatter for an example of how to implement a LogFormatter.

interface val LogFormatter

Public Functions

apply

[Source]

fun box apply(
  msg: String val,
  loc: SourceLoc val)
: String val

Parameters

Returns

© 2016-2018, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/logger-LogFormatter