Documentation ¶
Index ¶
- func Debug(msg string, fields ...zap.Field)
- func Error(msg string, fields ...zap.Field)
- func Info(msg string, fields ...zap.Field)
- func NewLogger(cfg *Config) *wrappedLogger
- func Panic(msg string, fields ...zap.Field)
- func SetGlobalLogger(l Logger)
- func Warn(msg string, fields ...zap.Field)
- func Wrapper(l *zap.Logger) *wrappedLogger
- type Config
- type Level
- type Logger
- type RotateConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
Debug logs a message at DebugLevel. The message includes any fields passed at the log site, as well as any fields accumulated on the logger.
func Error ¶
Debug logs a message at DebugLevel. The message includes any fields passed at the log site, as well as any fields accumulated on the logger.
func Info ¶
Debug logs a message at DebugLevel. The message includes any fields passed at the log site, as well as any fields accumulated on the logger.
func NewLogger ¶
func NewLogger(cfg *Config) *wrappedLogger
NewLogger is a function to create new zap logger this logger implement the Logger interface
func Panic ¶
Debug logs a message at DebugLevel. The message includes any fields passed at the log site, as well as any fields accumulated on the logger.
func SetGlobalLogger ¶
func SetGlobalLogger(l Logger)
SetGlobalLogger is a function to replace global logger object