Commit Graph

5 Commits (30288214878185ecfa82bfea1bf315ad337aea47)

Author SHA1 Message Date
Jack Christensen 3028821487 Add context.Context to Logger interface
This allows custom logger adapters to add additional fields to log
messages. For example, a HTTP server may with to log the request ID.

fixes #428
2019-08-03 16:16:21 -05:00
Jack Christensen efb333df6b Fix go modules
Wow. This is fun. Sure is easy to get modules wrong when upgrading a v2+
project.
2019-04-20 17:41:08 -05:00
André Bierlein 4dea6c902e Use logrus.FieldLogger instead of *logrus.Logger
This allows supplying a logrus logger that already has fields configured
2017-10-10 16:58:24 +02:00
Damir Vandic 8afa1fd332 fix logrus updated package name (lowercase)
See https://github.com/sirupsen/logrus/issues/570#issuecomment-313933276
2017-08-18 13:46:49 +02:00
Jack Christensen 280bce7078 Added log adapter for logrus
Also changed standard logger interface to take a map instead of varargs for
extra data.
2017-04-29 21:28:38 -05:00