Releases: sirupsen/logrus
Releases · sirupsen/logrus
Release v1.6.0
Release v1.6.0
v1.5.0
v1.4.2
v1.4.1
v1.4.0
This new release introduces:
- Add
DeferExitHandler
, similar toRegisterExitHandler
but prepending the handler to the list of handlers (semantically likedefer
) (#848). - Add
CallerPrettyfier
toJSONFormatter
and `TextFormatter (#909, #911) - Add
Entry.WithContext()
andEntry.Context
, to set a context on entries to be used e.g. in hooks (#919).
Fixes:
v1.3.0
This new release introduces:
- Log, Logf, Logln functions for Logger and Entry that take a Level
Fixes:
v1.2.0
This new release introduces: * A new method SetReportCaller in the Logger to enable the file, line and calling function from which the trace has been issued * A new trace level named Trace whose level is below Debug * A configurable exit function to be called upon a Fatal trace * The Level object now implements encoding.TextUnmarshaler interface
v1.1.1
v1.0.6
This new release introduces:
- a new api
WithTime
which allows to easily force the time of the log entry which is mostly useful for logger wrapper - a fix reverting the immutability of the entry given as parameter to the hooks
- a new configuration field of the json formatter in order to put all the fields in a nested dictionnary
- a new
SetOutput
method in theLogger
- a new configuration of the textformatter to configure the name of the default keys
- a new configuration of the text formatter to disable the level truncation