Logrus is a structured logger for Go (golang), completely API compatible with the standard library logger.
Seeing weird case-sensitive problems? It’s in the past been possible to import Logrus as both upper- and lower-case. Due to the Go package environment, this caused issues in the community and we needed a standard. Some environments experienced problems with the upper-case variant, so the lower-case was decided. Everything using
logrus will need to use the lower-case:
github.com/sirupsen/logrus. Any package that isn’t, should be changed.
Logrus Prefixed Log Formatter
Logrus formatter mainly based on original
logrus.TextFormatter but with slightly modified colored output and support for log entry prefixes, e.g. message source followed by a colon. In addition, custom color themes are supported.