logrus-stackdriver-formatter
logrus-stackdriver-formatter copied to clipboard
Stackdriver formatter for logrus
This merges in changes that are in a few forks, and also fixes #5 and #6.
When using WithError alog with Warn and below, the formatter leaves the error key in data, but strips the error message leaving an empty string. ``` logrus.WithError(errors.New("test")).Warn("Issues!") {"timestamp":"2009-11-10T23:00:00Z","message":"Issues !","severity":"WARNING","context":{"data":{"error":{}}}} logrus.WithError(errors.New("test")).Error("Issues!")...
would like to have a higher precision in the timestamp field
I'm doing a basic integration with negroni and logrus middleware using this formatter . However the format is not being recognised by stackdriver. My Implementation: ## utils.logger.go ``` package utils...
Errors included in a logrus.Entry are not formatted correctly. This is caused by https://github.com/sirupsen/logrus/issues/137