Versions in this module Expand all Collapse all v2 v2.0.2 Dec 16, 2024 v2.0.1 Aug 20, 2021 Changes in this version + var ErrNoSuchLogger = errors.New("Error: No such logger") + var LevelDPanic = LogLevel(zapcore.DPanicLevel) + var LevelDebug = LogLevel(zapcore.DebugLevel) + var LevelError = LogLevel(zapcore.ErrorLevel) + var LevelFatal = LogLevel(zapcore.FatalLevel) + var LevelInfo = LogLevel(zapcore.InfoLevel) + var LevelPanic = LogLevel(zapcore.PanicLevel) + var LevelWarn = LogLevel(zapcore.WarnLevel) + func FormatRFC3339(t time.Time) string + func GetSubsystems() []string + func SetAllLoggers(lvl LogLevel) + func SetDebugLogging() + func SetLogLevel(name, level string) error + func SetLogLevelRegex(e, l string) error + func SetupLogging(cfg Config) + type Config struct + File string + Format LogFormat + Labels map[string]string + Level LogLevel + Stderr bool + Stdout bool + SubsystemLevels map[string]LogLevel + URL string + type EventLogger interface + type LogFormat int + const ColorizedOutput + const JSONOutput + const PlaintextOutput + type LogLevel zapcore.Level + func LevelFromString(level string) (LogLevel, error) + type PipeReader struct + func NewPipeReader(opts ...PipeReaderOption) *PipeReader + func (p *PipeReader) Close() error + func (p *PipeReader) Read(data []byte) (int, error) + type PipeReaderOption interface + func PipeFormat(format LogFormat) PipeReaderOption + func PipeLevel(level LogLevel) PipeReaderOption + type StandardLogger interface + Debug func(args ...interface{}) + Debugf func(format string, args ...interface{}) + Error func(args ...interface{}) + Errorf func(format string, args ...interface{}) + Fatal func(args ...interface{}) + Fatalf func(format string, args ...interface{}) + Info func(args ...interface{}) + Infof func(format string, args ...interface{}) + Panic func(args ...interface{}) + Panicf func(format string, args ...interface{}) + Warn func(args ...interface{}) + Warnf func(format string, args ...interface{}) + type ZapEventLogger struct + func Logger(system string) *ZapEventLogger + func (logger *ZapEventLogger) Warning(args ...interface{}) + func (logger *ZapEventLogger) Warningf(format string, args ...interface{}) Other modules containing this package gitlab.dms3.io/dms3/go-log