zio-logging icon indicating copy to clipboard operation
zio-logging copied to clipboard

Allow the cause to be logged

Open Ellzord opened this issue 2 years ago • 1 comments

Currently it isn't possible to access the Cause with LogFormat. It isn't also extensible enough to do that (due to LogFormat.make() being private).

We should consider adding Cause in LogFormat.default but at the very least add the ability to combine it in with |-| (add val cause to the companion object).

Ellzord avatar May 11 '22 17:05 Ellzord

Hi @Ellzord,

LogFormat.cause was added, but for now, it is not part of LogFormat.default

you can create own one

val logFormatWithCause = LogFormat.default |-| LogFormat.cause

let us know if this is solving this issue ...

thanks

justcoon avatar Jul 03 '22 11:07 justcoon

LGTM

Ellzord avatar Aug 18 '22 08:08 Ellzord