Documentation
¶
Index ¶
- func AddHook(hook Hook) int32
- func Debug(format string, args ...interface{})
- func Error(format string, args ...interface{})
- func Info(format string, args ...interface{})
- func RemoveHook(id int32)
- func SetLevel(level logrus.Level)
- func Trace(format string, args ...interface{})
- func Warn(format string, args ...interface{})
- type Hook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHook ¶ added in v0.0.26
AddHook adds a hook to the logger. The hook will be called with the level and message of the log entry. This function returns a unique ID for the hook, which can be used to remove the hook later.
func RemoveHook ¶ added in v0.0.26
func RemoveHook(id int32)
RemoveHook removes a hook from the logger. The hook will no longer be called with the level and message of the log entry.
Types ¶
Click to show internal directories.
Click to hide internal directories.