Documentation ¶
Index ¶
- Variables
- func Debug(text string)
- func Debugf(format string, a ...interface{})
- func Error(err error)
- func Errorf(format string, a ...interface{})
- func Fatal(err error)
- func Fatalf(format string, a ...interface{})
- func Info(text string)
- func InfoErr(text string)
- func InfoErrf(format string, a ...interface{})
- func Infof(format string, a ...interface{})
- func Warn(text string)
- func Warnf(format string, a ...interface{})
- type FileLogger
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DebugMode sets debug mode flag DebugMode = false )
Functions ¶
Types ¶
type FileLogger ¶
type FileLogger struct {
// contains filtered or unexported fields
}
FileLogger a file logger
func (*FileLogger) Errorf ¶
func (fl *FileLogger) Errorf(format string, a ...interface{})
Errorf print error to stderr
func (*FileLogger) GetPath ¶
func (fl *FileLogger) GetPath() string
GetPath return the path where logs are pushed
func (*FileLogger) Warnf ¶
func (fl *FileLogger) Warnf(format string, a ...interface{})
Warnf print warning to stderr
Click to show internal directories.
Click to hide internal directories.