Commit Graph

15 Commits

Author SHA1 Message Date
Roma Sokolov 1196d67b47 Add LogrusLogger interface for Entry and Logger
This make it possible for client code to accept either Logger or Entry.
For example, utility function may accept logger object to inform fatal
errors and it is job of the calling code to provide either generic
top-level logger, or request-bound Entry created using .WithFields.

(fixes #308)
2016-02-02 17:38:49 +00:00
Simon Eskildsen 4197a1bbd5 Revert "TextMarshaler and TextUnmarshaler implementation for Level" 2015-10-05 07:45:58 -04:00
Maksim Naumov 277d0cb562 `TextMarshaler` and `TextUnmarshaler` implementation for `Level` 2015-09-12 22:41:06 +02:00
Antoine Grondin a2f80bd9c0 add compile checks for StdLogger interface 2015-09-07 20:49:55 -04:00
Simon Eskildsen 45d5602d9c logrus: remove dbg alias for ParseLevel
\cc @mohae
2014-09-25 03:10:06 +00:00
Joel Scoble 4e6e671281 add ParseLevel to get Level from string 2014-09-17 20:08:23 -05:00
Simon Eskildsen cd8fc638cc levels: add string helper 2014-07-26 21:02:08 -04:00
Antoine Grondin e5621dca87 Export package func to a standard logger. 2014-07-21 21:19:55 -04:00
Antoine Grondin bf45b308e9 Rename StandartLogger. Clean way to assert log.Logger realizes logrus
interface.
2014-03-14 15:07:57 -04:00
Antoine Grondin 97e1bef2cc Fix logger.StdLogger to really be a plugin stdlib/log.Logger. 2014-03-14 14:50:08 -04:00
Simon Eskildsen d02c5b387e docs: add documentation for godoc 2014-03-12 10:34:29 -04:00
Simon Eskildsen afde6aea11 levels: add to logger type 2014-03-10 19:52:39 -04:00
Simon Eskildsen 53371e3664 Add features from README 2014-03-10 19:22:08 -04:00
Simon Eskildsen 6c895096e8 split into multiple files 2014-02-23 19:50:42 -05:00
Simon Eskildsen 84ff01f444 Initial commit 2014-02-23 09:57:04 -05:00