AddHook adds a hook to the standard logger hooks.
(hook Hook)
| 48 | |
| 49 | // AddHook adds a hook to the standard logger hooks. |
| 50 | func AddHook(hook Hook) { |
| 51 | std.AddHook(hook) |
| 52 | } |
| 53 | |
| 54 | // WithError creates an entry from the standard logger and adds an error to it, using the value defined in ErrorKey as key. |
| 55 | func WithError(err error) *Entry { |