Documentation ¶
Index ¶
- func ToString(i int) string
- type Console
- type Logger
- func (l *Logger) DEBUG(f interface{}, v ...interface{})
- func (l *Logger) ERROR(f interface{}, v ...interface{})
- func (l *Logger) INFO(f interface{}, v ...interface{})
- func (l *Logger) SERIOUS(f interface{}, v ...interface{})
- func (l *Logger) WARN(f interface{}, v ...interface{})
- func (l *Logger) WithLogMiddleware(handle handlerLog)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Console ¶ added in v1.0.4
type Console interface { DEBUG(f interface{}, v ...interface{}) INFO(f interface{}, v ...interface{}) WARN(f interface{}, v ...interface{}) ERROR(f interface{}, v ...interface{}) SERIOUS(f interface{}, v ...interface{}) // contains filtered or unexported methods }
func NewLogByConfigFile ¶ added in v1.0.4
type Logger ¶ added in v1.0.3
type Logger struct { Color bool `yaml:"color"` SavePath string `yaml:"savepath"` Level string `yaml:"level"` Identifier string `yaml:"identifier"` TimeFormat string `yaml:"timeformat"` FileCording bool `yaml:"filecording"` // contains filtered or unexported fields }
func (*Logger) WithLogMiddleware ¶ added in v1.0.4
func (l *Logger) WithLogMiddleware(handle handlerLog)
Click to show internal directories.
Click to hide internal directories.