Documentation ¶
Overview ¶
Package l (log) provides logging functions by wrapping zap.
Index ¶
Constants ¶
View Source
const ( // DebugLevel logs are typically voluminous, and are usually disabled in // production. DebugLevel = zapcore.DebugLevel // InfoLevel is the default logging priority. InfoLevel = zapcore.InfoLevel // WarnLevel logs are more important than Info, but don't need individual // human review. WarnLevel = zapcore.WarnLevel // ErrorLevel logs are high-priority. If an application is running smoothly, // it shouldn't generate any error-level logs. ErrorLevel = zapcore.ErrorLevel // DPanicLevel logs are particularly important errors. In development the // logger panics after writing the message. DPanicLevel = zapcore.DPanicLevel // PanicLevel logs a message, then panics. PanicLevel = zapcore.PanicLevel // FatalLevel logs a message, then calls os.Exit(1). FatalLevel = zapcore.FatalLevel )
these constants are exported from zap
View Source
const EnvKey = "LOGGING"
production | development
View Source
const EnvLevel = "LOGGING_LEVEL"
debug | info | warn | error | dpanic | panic | fatal
View Source
const EnvProd = "production"
Variables ¶
View Source
var Any = zap.Any
View Source
var Array = zap.Array
View Source
var Binary = zap.Binary
View Source
var Bool = zap.Bool
View Source
var Boolp = zap.Boolp
View Source
var Bools = zap.Bools
View Source
var ByteString = zap.ByteString
View Source
var ByteStrings = zap.ByteStrings
View Source
var Complex128 = zap.Complex128
View Source
var Complex128p = zap.Complex128p
View Source
var Complex128s = zap.Complex128s
View Source
var Complex64 = zap.Complex64
View Source
var Complex64p = zap.Complex64p
View Source
var Complex64s = zap.Complex64s
View Source
var Duration = zap.Duration
View Source
var Durationp = zap.Durationp
View Source
var Durations = zap.Durations
View Source
var Error = zap.Error
View Source
var Errors = zap.Errors
View Source
var Float32 = zap.Float32
View Source
var Float32p = zap.Float32p
View Source
var Float32s = zap.Float32s
View Source
var Float64 = zap.Float64
View Source
var Float64p = zap.Float64p
View Source
var Float64s = zap.Float64s
View Source
var Inline = zap.Inline
View Source
var Int = zap.Int
View Source
var Int16 = zap.Int16
View Source
var Int16p = zap.Int16p
View Source
var Int16s = zap.Int16s
View Source
var Int32 = zap.Int32
View Source
var Int32p = zap.Int32p
View Source
var Int32s = zap.Int32s
View Source
var Int64 = zap.Int64
View Source
var Int64p = zap.Int64p
View Source
var Int64s = zap.Int64s
View Source
var Int8 = zap.Int8
View Source
var Int8p = zap.Int8p
View Source
var Int8s = zap.Int8s
View Source
var Intp = zap.Intp
View Source
var Ints = zap.Ints
View Source
var NamedError = zap.NamedError
View Source
var Namespace = zap.Namespace
View Source
var Object = zap.Object
View Source
var Reflect = zap.Reflect
View Source
var Skip = zap.Skip
View Source
var Stack = zap.Stack
View Source
var StackSkip = zap.StackSkip
View Source
var String = zap.String
View Source
var Stringer = zap.Stringer
View Source
var Stringp = zap.Stringp
View Source
var Strings = zap.Strings
View Source
var Time = zap.Time
View Source
var Timep = zap.Timep
View Source
var Times = zap.Times
View Source
var Uint = zap.Uint
View Source
var Uint16 = zap.Uint16
View Source
var Uint16p = zap.Uint16p
View Source
var Uint16s = zap.Uint16s
View Source
var Uint32 = zap.Uint32
View Source
var Uint32p = zap.Uint32p
View Source
var Uint32s = zap.Uint32s
View Source
var Uint64 = zap.Uint64
View Source
var Uint64p = zap.Uint64p
View Source
var Uint64s = zap.Uint64s
View Source
var Uint8 = zap.Uint8
View Source
var Uint8p = zap.Uint8p
View Source
var Uint8s = zap.Uint8s
View Source
var Uintp = zap.Uintp
View Source
var Uintptr = zap.Uintptr
View Source
var Uintptrp = zap.Uintptrp
View Source
var Uintptrs = zap.Uintptrs
View Source
var Uints = zap.Uints
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.