Documentation ¶
Index ¶
- Constants
- type Config
- type Field
- func Array(key string, val zapcore.ArrayMarshaler) Field
- func Duration(k string, d time.Duration) Field
- func Error(v error) Field
- func Float64(key string, val float64) Field
- func Int(k string, i int) Field
- func Int64(k string, i int64) Field
- func Object(key string, val zapcore.ObjectMarshaler) Field
- func String(k, v string) Field
- func Time(key string, val time.Time) Field
- type Logger
- type ObjectEncoder
Constants ¶
View Source
const ( DevelopmentLevel = "development" ProductionLevel = "production" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { Debug(string, ...Field) Error(string, ...Field) Info(string, ...Field) Panic(string, ...Field) Sync() error With(fields ...Field) *zap.Logger }
func NewDevelopmentLogger ¶
func NewNopLogger ¶
func NewProductionLogger ¶
type ObjectEncoder ¶
type ObjectEncoder = zapcore.ObjectEncoder
Click to show internal directories.
Click to hide internal directories.