Documentation
¶
Index ¶
- func InjectCtx(l *zap.Logger, ctx context.Context) *zap.Logger
- func LevelEncoder(l zapcore.Level, enc zapcore.PrimitiveArrayEncoder)
- func TimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
- type Loggers
- func (l *Loggers) Debug(i ...interface{})
- func (l *Loggers) Debugf(format string, args ...interface{})
- func (l *Loggers) Error(i ...interface{})
- func (l *Loggers) Errorf(format string, args ...interface{})
- func (l *Loggers) Fatal(i ...interface{})
- func (l *Loggers) Fatalf(format string, args ...interface{})
- func (l *Loggers) Fatalln(i ...interface{})
- func (l *Loggers) GetZapLog() *zap.Logger
- func (l *Loggers) Info(i ...interface{})
- func (l *Loggers) Infof(format string, args ...interface{})
- func (l *Loggers) Panic(i ...interface{})
- func (l *Loggers) Panicf(format string, args ...interface{})
- func (l *Loggers) Panicln(i ...interface{})
- func (l *Loggers) Print(i ...interface{})
- func (l *Loggers) Printf(format string, args ...interface{})
- func (l *Loggers) Println(args ...interface{})
- func (l *Loggers) Warn(i ...interface{})
- func (l *Loggers) Warnf(format string, args ...interface{})
- func (l *Loggers) WithContext(ctx context.Context) *Loggers
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LevelEncoder ¶
func LevelEncoder(l zapcore.Level, enc zapcore.PrimitiveArrayEncoder)
func TimeEncoder ¶
func TimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
An Option configures a Logger.
func Development ¶
func Development() Option
func Production ¶
func Production() Option
Click to show internal directories.
Click to hide internal directories.