Skip to content

Inject more CallerOffset in pterm.NewSlogHandler #608

@MarvinJWendt

Description

@MarvinJWendt

As discussed in #599

The slog handler for pterm.Logger adds additional function calls, which break the default offset of pterm.Logger. We could inject more offset into the passed pterm.Logger when pterm.NewSlogHandler is called. To make this change non-breaking, we should only inject the offset, if the passed pterm.Logger has no manually configured offset.

/cc @ccremer

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalProposal to add a new feature to pterm

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions