Documentation ¶
Index ¶
- Variables
- func Debug(s string, args ...Field)
- func Debugf(s string, args ...interface{})
- func Error(s string, args ...Field)
- func Errorf(s string, args ...interface{})
- func Fatal(s string, args ...Field)
- func Fatalf(s string, args ...interface{})
- func GetInstance(isStdOut, isSave bool, logfile, level, encodingType string) *zap.Logger
- func GetInstanceV2(isStdOut, isSave bool, logfile, level, encodingType string) *zap.Logger
- func Info(s string, args ...Field)
- func Infof(s string, args ...interface{})
- func Panic(s string, args ...Field)
- func Panicf(s string, args ...interface{})
- func TimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
- func Warn(s string, args ...Field)
- func Warnf(s string, args ...interface{})
- type Discarder
- type Field
- type Syncer
Constants ¶
This section is empty.
Variables ¶
View Source
var Atom zap.AtomicLevel
View Source
var Logger *zap.Logger
View Source
var Slogger *zap.SugaredLogger
Functions ¶
func GetInstance ¶
func GetInstanceV2 ¶
func TimeEncoder ¶
func TimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
Types ¶
type Syncer ¶
type Syncer struct {
// contains filtered or unexported fields
}
A Syncer is a spy for the Sync portion of zapcore.WriteSyncer.
Click to show internal directories.
Click to hide internal directories.