Skip to content

Formatting errors #7

Description

@ansel1

In slog.TextHandler, they use fmt.Sprintf("%+v", err) to print errors. This is useful in conjunction with some error libraries where their error type also implements fmt.Formatter, and uses it to print a stacktrace or other error metadata.

Below is a sample of console-slog modified to do this. Would you consider a PR for this?

image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions