Package Usage: go: github.com/apex/log
Package log implements a simple structured logging API designed with few assumptions. Designed for
centralized logging solutions such as Kinesis which require encoding and decoding before fanning-out
to handlers.
You may use this package with inline handlers, much like Logrus, however a centralized solution
is recommended so that apps do not need to be re-deployed to add or remove logging service
providers.
Errors are passed to WithError(), populating the "error" field.
Multiple fields can be set, via chaining, or WithFields().
Structured logging is supported with fields, and is recommended over the formatted message variants.
Trace can be used to simplify logging of start and completion events,
for example an upload which may fail.
Unstructured logging is supported, but not recommended since it is hard to query.
15 versions
Latest release: almost 5 years ago
1,524 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/apex/log