Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupStandardLogger ¶
SetupStandardLogger configures the global logger according to the provided configuration. It applies the output destination, log format, rotation policy, and log level used by all components that rely on the default logrus instance (`logrus.StandardLogger()`).
Types ¶
type ExtLogger ¶
type ExtLogger interface {
logrus.FieldLogger
Tracef(format string, args ...any)
Trace(args ...any)
Traceln(args ...any)
}
ExtLogger is a common interface for logrus.Logger and logrus.Entry. Much like Ext1FieldLogger from logrus.go, it says not to use it, yet it's currently the best option.
type FormatterSyslogHook ¶
func NewFormatterSyslogHook ¶
func NewFormatterSyslogHook(w *syslog.Writer) *FormatterSyslogHook
func (*FormatterSyslogHook) Levels ¶
func (*FormatterSyslogHook) Levels() []logrus.Level
type LogConfig ¶
type LogConfig interface {
GetFormat() string
GetMedia() string
NewRotatingLogger(filename string) *lumberjack.Logger
}
type SyslogFormatter ¶
type SyslogFormatter struct{}
Click to show internal directories.
Click to hide internal directories.