Versions in this module Expand all Collapse all v1 v1.5.1 Jan 30, 2024 v1.5.0 Dec 28, 2023 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 SetPrimaryCore(core zapcore.Core) + 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 + func GetConfig() Config + type LogFormat int + const ColorizedOutput + const JSONOutput + const PlaintextOutput + type LogLevel zapcore.Level + func LevelFromString(level string) (LogLevel, error) + type Logger interface + 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 NewLogger(system string) *ZapEventLogger + func WithSkip(l *ZapEventLogger, skip int) *ZapEventLogger + func WithStacktrace(l *ZapEventLogger, level LogLevel) *ZapEventLogger + func (logger *ZapEventLogger) Warning(args ...interface{}) + func (logger *ZapEventLogger) Warningf(format string, args ...interface{})