Documentation
¶
Index ¶
- Variables
- func Cond(is bool, positive string, negative condFn) string
- func Debug(args ...interface{})
- func Debugf(template string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(template string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(template string, args ...interface{})
- func Header(name string) string
- func Info(args ...interface{})
- func Infof(template string, args ...interface{})
- func Numerate(content string) string
- func Panic(args ...interface{})
- func Panicf(template string, args ...interface{})
- func Warn(args ...interface{})
- func Warnf(template string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var Instance = zap.New( zapcore.NewCore( zapcore.NewConsoleEncoder(zapcore.EncoderConfig{ LevelKey: "level", NameKey: "logger", CallerKey: "caller", MessageKey: "message", StacktraceKey: "stacktrace", LineEnding: zapcore.DefaultLineEnding, EncodeLevel: zapcore.LowercaseLevelEncoder, EncodeTime: zapcore.ISO8601TimeEncoder, EncodeDuration: zapcore.SecondsDurationEncoder, EncodeCaller: zapcore.ShortCallerEncoder, }), zapcore.AddSync(os.Stdout), zap.NewAtomicLevelAt(zap.InfoLevel), ), ).Sugar().Named("fd")
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.