Documentation ¶
Index ¶
- Constants
- 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 Named(s string) *zap.Logger
- func Panic(msg string, fields ...zap.Field)
- func Warn(msg string, fields ...zap.Field)
- func With(fields ...zap.Field) *zap.Logger
- func WithOptions(opts ...zap.Option) *zap.Logger
- type Config
- type Logger
Constants ¶
View Source
const ( LevelKey = "level" FormatKey = "format" )
View Source
const (
LoggerKey = "logger"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { config.PrintableInfoConfig // "debug", "info", "warn", "error", "dpanic", "panic", and "fatal" Level string // "console" and json Format string // "dispatcher", "provider", etc Name string // map[string]interface{}{"foo": 1, "bar": 2} Payloads map[string]interface{} StackTrace bool }
type Logger ¶
func LoggerFromContext ¶
Click to show internal directories.
Click to hide internal directories.