logrusiowriter alternatives and similar packages
Based on the "Logging" category
Do you think we are missing an alternative of logrusiowriter or a related project?
io.Writer implementation using logrus
Many golang libraries use the golang's
log package to print their logs. This means that if your application
uses logrus to print structured logging, those packages will print a format that is (probably) incompatible with yours,
and you may end losing logs in your logs collector because they can't be parsed properly.
Print the logs written using
logrus, by setting
log.SetOutput to an
logrus as output, i.e.:
example_*_test.go files to find testable examples that serve as documentation.
Or... you can simply use the standard APIs that logrus provides, i.e., this does the same as this package:
So, unless you want this to be configurable using an envconfig-filled struct, there's no reason to use this library.