forked from mirror/logrus
remove .gitignore changes and update AddHook
This commit is contained in:
parent
20cc8e2bc3
commit
eb156905d7
|
@ -1 +1 @@
|
|||
logrus
|
||||
logrus
|
||||
|
|
|
@ -35,7 +35,7 @@ func GetLevel() Level {
|
|||
|
||||
// AddHook adds a hook to the standard logger hooks.
|
||||
func AddHook(hook Hook) {
|
||||
std.Hooks.Add(hook)
|
||||
std.AddHook(hook)
|
||||
}
|
||||
|
||||
// WithError creates an entry from the standard logger and adds an error to it, using the value defined in ErrorKey as key.
|
||||
|
|
Loading…
Reference in New Issue