Versions in this module Expand all Collapse all v1 v1.7.1 Jan 29, 2021 v1.7.0 Dec 8, 2020 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 + Level LogLevel + Stderr bool + Stdout bool + 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{})