Skip to content

Improve logging support #131

@khvn26

Description

@khvn26

Golang's logging ecosystem is vast, and users expect various logging models to be supported. For instance, one of our enterprise customers expects slog support. Currently, the package expects a Logger interface passed as means to log its events. Apparently this is not flexible enough.

Options to consider:

  1. Remove logging altogether; return errors where appropriate.
  2. Add explicit support for slog by adding a SetHandler method.
  3. Simplify expected logger dependency by accepting a logFn function with one msg argument. Have a null logger as default.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions