Documentation
¶
Overview ¶
Package log provides logging implementation with hooks to send logs to Escape Platform
Index ¶
- func AddHook(name string, callback func(Entry))
- func Debug(format string, args ...any)
- func Error(format string, args ...any)
- func Info(format string, args ...any)
- func RemoveHook(name string)
- func SetLevel(level logrus.Level)
- func Trace(format string, args ...any)
- func Warn(format string, args ...any)
- type Entry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHook ¶ added in v0.0.26
AddHook adds a named 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(name string)
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.