Documentation ¶ Index ¶ type EncoderType type Logger func NewLogger(debugWriter, infoWriter, warnErrorFatalWriter io.Writer) *Logger func (l *Logger) Close() error func (l *Logger) Log(level log.Level, keyValues ...interface{}) error func (l *Logger) Sync() error type Option Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type EncoderType ¶ type EncoderType int8 const ( JSONEncoder EncoderType = iota ConsoleEncoder ) type Logger ¶ type Logger struct { // contains filtered or unexported fields } func NewLogger ¶ func NewLogger(debugWriter, infoWriter, warnErrorFatalWriter io.Writer) *Logger func (*Logger) Close ¶ func (l *Logger) Close() error func (*Logger) Log ¶ func (l *Logger) Log(level log.Level, keyValues ...interface{}) error func (*Logger) Sync ¶ func (l *Logger) Sync() error type Option ¶ type Option func(*Logger) Source Files ¶ View all Source files logger.go zap.go Click to show internal directories. Click to hide internal directories.