Documentation ¶
Index ¶
- func NewZapProd() (*zap.Logger, error)
- type BuiltinLogger
- func (bl *BuiltinLogger) Debug(args ...interface{})
- func (bl *BuiltinLogger) Debugf(template string, args ...interface{})
- func (bl *BuiltinLogger) Error(args ...interface{})
- func (bl *BuiltinLogger) Errorf(template string, args ...interface{})
- func (bl *BuiltinLogger) Info(args ...interface{})
- func (bl *BuiltinLogger) Infof(template string, args ...interface{})
- func (bl *BuiltinLogger) Named(name string)
- func (bl *BuiltinLogger) Warn(args ...interface{})
- func (bl *BuiltinLogger) Warnf(template string, args ...interface{})
- func (bl *BuiltinLogger) With(args ...interface{}) Logger
- type Logger
- type LoggerWithWarning
- type ShimLoggerWarning
- type ZapLogger
- func (zl *ZapLogger) Debug(args ...interface{})
- func (zl *ZapLogger) Debugf(template string, args ...interface{})
- func (zl *ZapLogger) Error(args ...interface{})
- func (zl *ZapLogger) Errorf(template string, args ...interface{})
- func (zl *ZapLogger) Fatal(args ...interface{})
- func (zl *ZapLogger) Fatalf(template string, args ...interface{})
- func (zl *ZapLogger) Info(args ...interface{})
- func (zl *ZapLogger) Infof(template string, args ...interface{})
- func (zl *ZapLogger) Panic(args ...interface{})
- func (zl *ZapLogger) Panicf(template string, args ...interface{})
- func (zl *ZapLogger) Warn(args ...interface{})
- func (zl *ZapLogger) Warnf(template string, args ...interface{})
- func (zl *ZapLogger) With(args ...interface{}) Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewZapProd ¶
Types ¶
type BuiltinLogger ¶
func NewBuiltinLogger ¶
func NewBuiltinLogger(level int) *BuiltinLogger
func (*BuiltinLogger) Debug ¶
func (bl *BuiltinLogger) Debug(args ...interface{})
func (*BuiltinLogger) Debugf ¶
func (bl *BuiltinLogger) Debugf(template string, args ...interface{})
func (*BuiltinLogger) Error ¶
func (bl *BuiltinLogger) Error(args ...interface{})
func (*BuiltinLogger) Errorf ¶
func (bl *BuiltinLogger) Errorf(template string, args ...interface{})
func (*BuiltinLogger) Info ¶
func (bl *BuiltinLogger) Info(args ...interface{})
func (*BuiltinLogger) Infof ¶
func (bl *BuiltinLogger) Infof(template string, args ...interface{})
func (*BuiltinLogger) Named ¶
func (bl *BuiltinLogger) Named(name string)
func (*BuiltinLogger) Warn ¶
func (bl *BuiltinLogger) Warn(args ...interface{})
func (*BuiltinLogger) Warnf ¶
func (bl *BuiltinLogger) Warnf(template string, args ...interface{})
func (*BuiltinLogger) With ¶
func (bl *BuiltinLogger) With(args ...interface{}) Logger
type Logger ¶
type Logger interface { //Named(name string) Debug(args ...interface{}) Debugf(template string, args ...interface{}) Info(args ...interface{}) Infof(template string, args ...interface{}) Warn(args ...interface{}) Warnf(template string, args ...interface{}) Error(args ...interface{}) Errorf(template string, args ...interface{}) Panic(args ...interface{}) Panicf(template string, args ...interface{}) Fatal(args ...interface{}) Fatalf(template string, args ...interface{}) With(args ...interface{}) Logger }
type LoggerWithWarning ¶
type LoggerWithWarning interface { Logger Warning(args ...interface{}) Warningf(template string, args ...interface{}) }
func NewShimLoggerWarning ¶
func NewShimLoggerWarning(logger Logger) LoggerWithWarning
type ShimLoggerWarning ¶
type ShimLoggerWarning struct {
Logger
}
func (*ShimLoggerWarning) Warning ¶
func (sl *ShimLoggerWarning) Warning(args ...interface{})
func (*ShimLoggerWarning) Warningf ¶
func (sl *ShimLoggerWarning) Warningf(template string, args ...interface{})
Click to show internal directories.
Click to hide internal directories.