mirror of https://github.com/sirupsen/logrus.git
remove .gitignore changes and update AddHook
This commit is contained in:
parent
20cc8e2bc3
commit
eb156905d7
|
@ -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