Documentation ¶
Index ¶
- func DPanic(msg string, fields ...Field)
- func DPanicf(format string, a ...interface{})
- func Debug(msg string, fields ...Field)
- func Debugf(format string, a ...interface{})
- func Error(msg string, fields ...Field)
- func Errorf(format string, a ...interface{})
- func Fatal(msg string, fields ...Field)
- func Fatalf(format string, a ...interface{})
- func GetDefault() *log.XLog
- func Info(msg string, fields ...Field)
- func Infof(format string, a ...interface{})
- func Panic(msg string, fields ...Field)
- func Panicf(format string, a ...interface{})
- func SetDefault(zl XLog) (err error)
- func Sync(ll ...XLog) (err error)
- func Warn(msg string, fields ...Field)
- func Warnf(format string, a ...interface{})
- func Watch(fn func(logs XLog))
- type Field
- func Any(key string, value interface{}) Field
- func Binary(key string, val []byte) Field
- func Bool(key string, val bool) Field
- func ByteString(key string, val []byte) Field
- func Complex128(key string, val complex128) Field
- func Complex64(key string, val complex64) Field
- func Duration(key string, val time.Duration) Field
- func Float32(key string, val float32) Field
- func Float64(key string, val float64) Field
- func Fmt(format string, a ...interface{}) Field
- func Int(key string, val int) Field
- func Int16(key string, val int16) Field
- func Int32(key string, val int32) Field
- func Int64(key string, val int64) Field
- func Int8(key string, val int8) Field
- func Object(key string, val zapcore.ObjectMarshaler) Field
- func Reflect(key string, val interface{}) Field
- func Skip() Field
- func Stack(key string) Field
- func String(key string, val string) Field
- func Stringer(key string, val fmt.Stringer) Field
- func Time(key string, val time.Time) Field
- func Uint(key string, val uint) Field
- func Uint16(key string, val uint16) Field
- func Uint32(key string, val uint32) Field
- func Uint64(key string, val uint64) Field
- func Uint8(key string, val uint8) Field
- type Fields
- type Option
- func WithCaller(enabled bool) Option
- func WithCallerSkip(skip int) Option
- func WithDevelopment() Option
- func WithErrorOutput(w zapcore.WriteSyncer) Option
- func WithFields(fs ...Field) Option
- func WithHooks(hooks ...func(zapcore.Entry) error) Option
- func WithIncreaseLevel(lvl zapcore.LevelEnabler) Option
- func WithOnFatal(action zapcore.CheckWriteAction) Option
- func WithStacktrace(lvl zapcore.LevelEnabler) Option
- type XLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefault ¶ added in v0.0.11
func SetDefault ¶ added in v0.0.8
Types ¶
type Option ¶ added in v0.0.6
func WithCaller ¶ added in v0.0.6
func WithCallerSkip ¶ added in v0.0.11
func WithDevelopment ¶ added in v0.0.11
func WithDevelopment() Option
func WithErrorOutput ¶ added in v0.0.11
func WithErrorOutput(w zapcore.WriteSyncer) Option
func WithFields ¶ added in v0.0.11
func WithIncreaseLevel ¶ added in v0.0.11
func WithIncreaseLevel(lvl zapcore.LevelEnabler) Option
func WithOnFatal ¶ added in v0.0.11
func WithOnFatal(action zapcore.CheckWriteAction) Option
func WithStacktrace ¶ added in v0.0.11
func WithStacktrace(lvl zapcore.LevelEnabler) Option
Directories ¶
Path | Synopsis |
---|---|
writer/rotate/file-rotatelogs
package rotatelogs is a port of File-RotateLogs from Perl (https://metacpan.org/release/File-RotateLogs), and it allows you to automatically rotate output files when you write to them according to the filename pattern that you can specify.
|
package rotatelogs is a port of File-RotateLogs from Perl (https://metacpan.org/release/File-RotateLogs), and it allows you to automatically rotate output files when you write to them according to the filename pattern that you can specify. |
Click to show internal directories.
Click to hide internal directories.