Documentation ¶
Index ¶
- 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 FieldTozapField(fields ...Field) (fds []zap.Field)
- func Info(msg string, fields ...Field)
- func Infof(format string, a ...interface{})
- func OnInit(s core.IService, opt ...Option) (err error)
- func Panic(msg string, fields ...Field)
- func Panicf(format string, a ...interface{})
- func Warn(msg string, fields ...Field)
- func Warnf(format string, a ...interface{})
- type Field
- type Ilog
- type LogStrut
- type Logger
- func (this *Logger) Debug(msg string, fields ...Field)
- func (this *Logger) Debugf(format string, a ...interface{})
- func (this *Logger) Error(msg string, fields ...Field)
- func (this *Logger) Errorf(format string, a ...interface{})
- func (this *Logger) Fatal(msg string, fields ...Field)
- func (this *Logger) Fatalf(format string, a ...interface{})
- func (this *Logger) Info(msg string, fields ...Field)
- func (this *Logger) Infof(format string, a ...interface{})
- func (this *Logger) Panic(msg string, fields ...Field)
- func (this *Logger) Panicf(format string, a ...interface{})
- func (this *Logger) Warn(msg string, fields ...Field)
- func (this *Logger) Warnf(format string, a ...interface{})
- type Loglevel
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FieldTozapField ¶
Types ¶
type Ilog ¶
type Ilog interface { Debug(msg string, fields ...Field) Info(msg string, fields ...Field) Warn(msg string, fields ...Field) Error(msg string, fields ...Field) Panic(msg string, fields ...Field) Fatal(msg string, fields ...Field) Debugf(format string, a ...interface{}) Infof(format string, a ...interface{}) Warnf(format string, a ...interface{}) Errorf(format string, a ...interface{}) Panicf(format string, a ...interface{}) Fatalf(format string, a ...interface{}) }
type Option ¶
type Option func(*Options)
func SetDebugMode ¶
func SetFileName ¶
func SetLoglayer ¶
func SetLoglevel ¶
Click to show internal directories.
Click to hide internal directories.