Documentation ¶
Index ¶
- type Config
- type Field
- func Any(key string, value interface{}) Field
- func Array(key string, val zapcore.ArrayMarshaler) Field
- func Binary(key string, val []byte) Field
- func Bool(key string, val bool) Field
- func Bools(key string, bs []bool) Field
- func ByteString(key string, val []byte) Field
- func ByteStrings(key string, val [][]byte) Field
- func Duration(key string, val time.Duration) Field
- func Durations(key string, ds []time.Duration) Field
- func Error(err error) Field
- func Errors(key string, errs []error) Field
- func Float32(key string, val float32) Field
- func Float32s(key string, vals []float32) Field
- func Float64(key string, val float64) Field
- func Float64s(key string, vals []float64) Field
- func Int(key string, val int) Field
- func Int16(key string, val int16) Field
- func Int16s(key string, vals []int16) Field
- func Int32(key string, val int32) Field
- func Int32s(key string, vals []int32) Field
- func Int64(key string, val int64) Field
- func Int64s(key string, vals []int64) Field
- func Int8(key string, val int8) Field
- func Int8s(key string, vals []int8) Field
- func Ints(key string, vals []int) Field
- func NamedError(key string, err error) Field
- func Namespace(key string) Field
- func Object(key string, val zapcore.ObjectMarshaler) Field
- func Stack(key string) Field
- func String(key string, val string) Field
- func Strings(key string, ss []string) Field
- func Time(key string, val time.Time) Field
- func Times(key string, ts []time.Time) Field
- func Uint(key string, val uint) Field
- func Uint16(key string, val uint16) Field
- func Uint16s(key string, vals []uint16) Field
- func Uint32(key string, val uint32) Field
- func Uint32s(key string, vals []uint32) Field
- func Uint64(key string, val uint64) Field
- func Uint64s(key string, vals []uint64) Field
- func Uint8(key string, val uint8) Field
- func Uint8s(key string, vals []uint8) Field
- func Uints(key string, vals []uint) Field
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { LogFile string `json:"logfile"` // log file name LogLevel string `json:"level"` // log level MaxSize int `json:"maxsize"` // max size of single log file MaxBackups int `json:"maxbackups"` // max logs to retain MaxAge int `json:"maxage"` // max days to retain logs Compress bool `json:"compress"` // if compress logs }
type Logger ¶
type Logger struct { *zap.Logger zap.AtomicLevel // contains filtered or unexported fields }
func NewAuditLogger ¶
func NewStdLogger ¶
func (*Logger) SetStrLevel ¶
Click to show internal directories.
Click to hide internal directories.