Versions in this module Expand all Collapse all v3 v3.0.0 Dec 17, 2024 Changes in this version + var FallbackLogger = logrus.StandardLogger() + func WithLogger(ctx context.Context, logger LoggerIface) context.Context + type BrokerHook struct + func NewBrokerHook(ctx context.Context, level string) *BrokerHook + func (hook *BrokerHook) AddSubscriber(msgCh MessageChanType) + func (hook *BrokerHook) Fire(entry *logrus.Entry) error + func (hook *BrokerHook) Levels() []logrus.Level + func (hook *BrokerHook) RemoveSubscriber(msgCh MessageChanType) + func (hook *BrokerHook) SetBrokerFormatter(formatter logrus.Formatter) + type CmdOpts struct + LogFile string + LogFileAge int + LogFileFormat string + LogFileNumber int + LogFileRotate bool + LogFileSize int + LogLevel string + type Formatter struct + CallerFirst bool + CustomCallerFormatter func(*runtime.Frame) string + FieldsOrder []string + HideKeys bool + NoColors bool + NoFieldsColors bool + NoFieldsSpace bool + NoUppercaseLevel bool + ShowFullLevel bool + TimestampFormat string + TrimMessages bool + func (f *Formatter) Format(entry *logrus.Entry) ([]byte, error) + type LoggerHookerIface interface + AddHook func(hook logrus.Hook) + AddSubscriber func(msgCh MessageChanType) + RemoveSubscriber func(msgCh MessageChanType) + func Init(opts CmdOpts) LoggerHookerIface + type LoggerIface logrus.FieldLogger + func GetLogger(ctx context.Context) LoggerIface + type MessageChanType chan MessageType + type MessageType string + type PgxLogger struct + func NewPgxLogger(l LoggerIface) *PgxLogger + func (pgxlogger *PgxLogger) Log(ctx context.Context, level tracelog.LogLevel, msg string, data map[string]any)