Documentation ¶ Index ¶ type Config type Logger func NewLogger(config *Config, options ...Option) (*Logger, error) func (l *Logger) Close() type Option func AddCaller() Option func AddStacktrace(level string) Option func WithField(key string, value interface{}) Option Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { Level string CollectorURL string Hostname string Namespace string Source string BuildCommit string ConfigHash string DisableStdout bool } type Logger ¶ type Logger struct { *zap.SugaredLogger // contains filtered or unexported fields } func NewLogger ¶ func NewLogger(config *Config, options ...Option) (*Logger, error) func (*Logger) Close ¶ func (l *Logger) Close() type Option ¶ type Option func(options []zap.Option) []zap.Option func AddCaller ¶ func AddCaller() Option func AddStacktrace ¶ func AddStacktrace(level string) Option func WithField ¶ func WithField(key string, value interface{}) Option Source Files ¶ View all Source files logger.go Click to show internal directories. Click to hide internal directories.