Documentation ¶
Overview ¶
simplelog package provides a simple logger
Index ¶
- Constants
- func Close() error
- func Debug(format string)
- func Debugf(format string, v ...interface{})
- func Error(format string)
- func Errorf(format string, v ...interface{})
- func HostLog(host, line string)
- func Info(format string)
- func Infof(format string, v ...interface{})
- func InitLogger(level int)
- func Warning(format string)
- func Warningf(format string, v ...interface{})
- type Logger
- func (l *Logger) Debug(format string)
- func (l *Logger) Debugf(format string, v ...interface{})
- func (l *Logger) Error(format string)
- func (l *Logger) Errorf(format string, v ...interface{})
- func (l *Logger) Info(format string)
- func (l *Logger) Infof(format string, v ...interface{})
- func (l *Logger) Warning(format string)
- func (l *Logger) Warningf(format string, v ...interface{})
Constants ¶
View Source
const ( LevelError = iota LevelWarning LevelInfo LevelDebug )
Variables ¶
This section is empty.
Functions ¶
func InitLogger ¶
func InitLogger(level int)
Types ¶
Click to show internal directories.
Click to hide internal directories.