Documentation
¶
Index ¶
- Constants
- func GetLevelFromString(minLevel string) logutils.LogLevel
- type Logger
- func (l *Logger) Debugf(format string, v ...interface{})
- func (l *Logger) Debugln(v ...interface{})
- func (l *Logger) Errorf(format string, v ...interface{})
- func (l *Logger) Errorln(v ...interface{})
- func (l *Logger) Fatalf(format string, v ...interface{})
- func (l *Logger) Fatalln(v ...interface{})
- func (l *Logger) Infof(format string, v ...interface{})
- func (l *Logger) Infoln(v ...interface{})
- func (l *Logger) Warnf(format string, v ...interface{})
- func (l *Logger) Warnln(v ...interface{})
Constants ¶
View Source
const ( Debug logutils.LogLevel = "DEBUG" Info logutils.LogLevel = "INFO" Warn logutils.LogLevel = "WARN" Error logutils.LogLevel = "ERROR" Fatal logutils.LogLevel = "FATAL" )
...
Variables ¶
This section is empty.
Functions ¶
func GetLevelFromString ¶
GetLevelFromString gets the log level from string like 'debug', 'Info', 'WARN', and so on.
Types ¶
type Logger ¶
Logger ...
func (*Logger) Debugln ¶
func (l *Logger) Debugln(v ...interface{})
Debugln logs to the DEBUG log in fmt.Println manner.
func (*Logger) Errorln ¶
func (l *Logger) Errorln(v ...interface{})
Errorln logs to the ERROR log in fmt.Println manner.
func (*Logger) Fatalln ¶
func (l *Logger) Fatalln(v ...interface{})
Fatalln logs to the FATAL log in fmt.Println manner.
func (*Logger) Infoln ¶
func (l *Logger) Infoln(v ...interface{})
Infoln logs to the INFO log in fmt.Println manner.
Click to show internal directories.
Click to hide internal directories.