Versions in this module Expand all Collapse all v5 v5.22.0 Apr 4, 2020 Changes in this version + const LevelDebug + const LevelError + const LevelInfo + const LevelWarn + var Any = zap.Any + var Bool = zap.Bool + var Duration = zap.Duration + var Err = zap.Error + var Int = zap.Int + var Int32 = zap.Int32 + var Int64 = zap.Int64 + var NamedErr = zap.NamedError + var String = zap.String + var Uint32 = zap.Uint32 + func GloballyDisableDebugLogForTest() + func GloballyEnableDebugLogForTest() + func InitGlobalLogger(logger *Logger) + func RedirectStdLog(logger *Logger) + type Field = zapcore.Field + type LogFunc func(string, ...Field) + var Critical LogFunc = defaultCriticalLog + var Debug LogFunc = defaultDebugLog + var Error LogFunc = defaultErrorLog + var Info LogFunc = defaultInfoLog + var Warn LogFunc = defaultWarnLog + type Logger struct + func NewLogger(config *LoggerConfiguration) *Logger + func NewTestingLogger(tb testing.TB, writer io.Writer) *Logger + func (l *Logger) ChangeLevels(config *LoggerConfiguration) + func (l *Logger) Critical(message string, fields ...Field) + func (l *Logger) Debug(message string, fields ...Field) + func (l *Logger) Error(message string, fields ...Field) + func (l *Logger) Info(message string, fields ...Field) + func (l *Logger) SetConsoleLevel(level string) + func (l *Logger) StdLog(fields ...Field) *log.Logger + func (l *Logger) StdLogAt(level string, fields ...Field) (*log.Logger, error) + func (l *Logger) StdLogWriter() io.Writer + func (l *Logger) Sugar() *SugarLogger + func (l *Logger) Warn(message string, fields ...Field) + func (l *Logger) With(fields ...Field) *Logger + func (l *Logger) WithCallerSkip(skip int) *Logger + type LoggerConfiguration struct + ConsoleJson bool + ConsoleLevel string + EnableConsole bool + EnableFile bool + FileJson bool + FileLevel string + FileLocation string + type SugarLogger struct + func (l *SugarLogger) Debug(msg string, keyValuePairs ...interface{}) + func (l *SugarLogger) Error(msg string, keyValuePairs ...interface{}) + func (l *SugarLogger) Info(msg string, keyValuePairs ...interface{}) + func (l *SugarLogger) Warn(msg string, keyValuePairs ...interface{}) Other modules containing this package github.com/vnforks/kid