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 GetLogLoc() string
- func HostLog(host, line string)
- func Info(format string)
- func Infof(format string, v ...interface{})
- func InitLogger(level int)
- func InitLoggerWithFile(level int, fileName string)
- func LogEndMessage()
- func LogStartMessage()
- func PaddingForStr(str string) string
- 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)
func InitLoggerWithFile ¶ added in v0.8.0
func LogEndMessage ¶ added in v0.8.0
func LogEndMessage()
func LogStartMessage ¶ added in v0.8.0
func LogStartMessage()
func PaddingForStr ¶ added in v0.8.0
Types ¶
Click to show internal directories.
Click to hide internal directories.