Inject more CallerOffset
in pterm.NewSlogHandler
#608
Labels
proposal
Proposal to add a new feature to pterm
CallerOffset
in pterm.NewSlogHandler
#608
As discussed in #599
The
slog
handler forpterm.Logger
adds additional function calls, which break the default offset ofpterm.Logger
. We could inject more offset into the passedpterm.Logger
whenpterm.NewSlogHandler
is called. To make this change non-breaking, we should only inject the offset, if the passedpterm.Logger
has no manually configured offset./cc @ccremer
The text was updated successfully, but these errors were encountered: