Documentation ¶
Index ¶
- Constants
- func Debug(l interface{})
- func Debugf(format string, a ...interface{})
- func EnableDebug()
- func EnableFileInfo()
- func EnableWrite()
- func Error(l interface{})
- func ErrorLine(l interface{})
- func ErrorLinef(format string, a ...interface{})
- func Errorf(format string, a ...interface{})
- func Info(l interface{})
- func Infof(l string, a ...interface{})
- func Lock()
- func SetFilename(name string)
- func Success(l interface{})
- func Successf(format string, a ...interface{})
- func Unlock()
- func Warn(l interface{})
- func Warnf(format string, a ...interface{})
- func Write(l interface{})
- func Writef(format string, a ...interface{})
- type Logger
Constants ¶
View Source
const ClrDEBUG = "\x1b[37;2m"
View Source
const ClrEnd = "\x1b[0m"
View Source
const ClrSuccess = "\x1b[32;2m"
View Source
const ClrWarn = "\x1b[33;2m"
Variables ¶
This section is empty.
Functions ¶
func ErrorLinef ¶
func ErrorLinef(format string, a ...interface{})
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) Output ¶
Output writes the output for a logging event. The string s contains the text to print after the prefix specified by the flags of the Logger. A newline is appended if the last character of s is not already a newline. Calldepth is used to recover the PC and is provided for generality, although at the moment on all pre-defined paths it will be 2.
Click to show internal directories.
Click to hide internal directories.