Skip to content

Why does log commands return error? #114

Description

@gucio321

Hi there,
The logger is awesome ;-)
The only fact, i'm quit dissapointed is that the log commands return errors...
It seems a bit strange for me, since loggers are designed to handle errors, not produce them 😄
This is a bit annoying for me, since GoLand complains about "unhandled error"
image

What about changing API to something like:

glg.Info("some log")
if glg.Err() != nil { /* handle error if you really need this */ }

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