Documentation
¶
Index ¶
- Variables
- func DPanic(msg string, fields ...zap.Field)
- func Debug(msg string, fields ...zap.Field)
- func Error(msg string, fields ...zap.Field)
- func Fatal(msg string, fields ...zap.Field)
- func Info(msg string, fields ...zap.Field)
- func UseDevLogger()
- func UseProdLogger(filePath string, maxFileSizeMB int, maxFileAgeDays int, maxBackups int)
- func Warn(msg string, fields ...zap.Field)
- type StringMap
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger *zap.Logger
The main logger from which all child loggers should be derived.
Functions ¶
func UseDevLogger ¶
func UseDevLogger()
func UseProdLogger ¶
Types ¶
type StringMap ¶
func (StringMap) MarshalLogObject ¶
func (m StringMap) MarshalLogObject(e zapcore.ObjectEncoder) error
Click to show internal directories.
Click to hide internal directories.