Versions in this module Expand all Collapse all v1 v1.0.0 Aug 10, 2022 Changes in this version + const CallerKey + const CorrelationIDKey + const HostnameKey + const LevelKey + const MessageKey + const NameKey + const ServiceNameKey + const SpanIDKey + const StackTraceKey + const TimeKey + const TraceIDKey + type Level zapcore.Level + const DPanicLevel + const DebugLevel + const DefaultLevel + const ErrorLevel + const FatalLevel + const InfoLevel + const PanicLevel + const WarnLevel + type Logger struct + func New(service string, options ...OptionFunc) *Logger + func (l *Logger) Debug(msg string, fields ...zap.Field) + func (l *Logger) Error(msg string, fields ...zap.Field) + func (l *Logger) Info(msg string, fields ...zap.Field) + func (l *Logger) Warn(msg string, fields ...zap.Field) + func (l *Logger) WithField(field zap.Field) *Logger + func (l *Logger) WithFields(fields ...zap.Field) *Logger + type OptionFunc func(*Logger) + func WithLevel(level string) OptionFunc + func WithOutput(output zapcore.WriteSyncer) OptionFunc