Spec-Zone.ru › 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

  • msg: String val
  • loc: SourceLoc val

Returns

  • String val

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API