Documentation ¶
Index ¶
- func Access(ctx *context.Context)
- func Debug(info ...interface{})
- func Debugf(template string, args ...interface{})
- func Error(err ...interface{})
- func Errorf(template string, args ...interface{})
- func Fatal(info ...interface{})
- func Fatalf(template string, args ...interface{})
- func Info(info ...interface{})
- func Infof(template string, args ...interface{})
- func InitWithConfig(cfg Config)
- func LogSQL(statement string, args []interface{})
- func OpenSQLLog()
- func SetRotate(cfg RotateCfg)
- func Warn(info ...interface{})
- func Warnf(template string, args ...interface{})
- type Config
- type EncoderCfg
- type Logger
- type RotateCfg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶ added in v1.2.9
func Debugf(template string, args ...interface{})
Debugf print the debug message.
func Errorf ¶ added in v1.2.9
func Errorf(template string, args ...interface{})
Errorf print the error message.
func Fatalf ¶ added in v1.2.9
func Fatalf(template string, args ...interface{})
Fatalf print the fatal message.
func Infof ¶ added in v1.2.9
func Infof(template string, args ...interface{})
Info print the info message.
func InitWithConfig ¶ added in v1.2.9
func InitWithConfig(cfg Config)
Types ¶
type EncoderCfg ¶ added in v1.2.9
type Logger ¶ added in v1.2.9
func (*Logger) SetEncoder ¶ added in v1.2.9
func (l *Logger) SetEncoder(cfg EncoderCfg)
Click to show internal directories.
Click to hide internal directories.