This new release introduces:
- Add
DeferExitHandler, similar toRegisterExitHandlerbut prepending the handler to the list of handlers (semantically likedefer) (#848). - Add
CallerPrettyfiertoJSONFormatterand `TextFormatter (#909, #911) - Add
Entry.WithContext()andEntry.Context, to set a context on entries to be used e.g. in hooks (#919).
Fixes:
- Fix wrong method calls
Logger.PrintandLogger.Warningln(#893). - Update
Entry.Logfto not do string formatting unless the log level is enabled (#903) - Fix infinite recursion on unknown
Level.String()(#907) - Fix race condition in
getCaller(#916).