8 Commits

Author SHA1 Message Date
Nicholas Wilson
8ba5485db6 Use zap.Any for handling interface{} -> zap.Field conversion
zap.Any falls back to zap.Reflect, but is better for this case, because
it first checks for the types that zap handles specially.  For example,
time.Duration, or error, which zap.Reflect will just treat as untyped
int64 or struct objects, but zap.Any is able to detect these types and
print them properly.
2019-07-04 10:21:32 +01:00
Justin Reagor
5819bc8fb1 Small typo 2018-03-21 00:25:14 -04:00
Justin Reagor
cb72072f8d Add zerolog logging adapter 2018-03-19 22:40:13 -04: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
Kelsey Francis
8cb78d376a Add zap log adapter 2017-09-07 11:07:55 -07: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
Jack Christensen
855b735eae Add log adapters for testing and log15
Make LogLevel a type for Stringer interface.
2017-04-29 20:33:52 -05:00