Documentation
¶
Overview ¶
llog is a simple *leveled* logging packages originally writen and used in Go services at Sqwiggle (https://www.sqwiggle.com). The API is designed to be conceptually similar to the standard library's log package
Index ¶
- Constants
- func Debug(s interface{})
- func Debugf(s interface{}, a ...interface{})
- func Error(s interface{})
- func Errorf(s interface{}, a ...interface{})
- func FATAL(s interface{})
- func Info(s interface{})
- func Infof(s interface{}, a ...interface{})
- func SetLevel(i int) error
- func Success(s interface{})
- func Successf(s interface{}, a ...interface{})
- func Warn(s interface{})
- func Warnf(s interface{}, a ...interface{})
- type Logger
- func (l *Logger) Debug(s interface{})
- func (l *Logger) Debugf(s interface{}, a ...interface{})
- func (l *Logger) Error(s interface{})
- func (l *Logger) Errorf(s interface{}, a ...interface{})
- func (l *Logger) FATAL(s interface{})
- func (l *Logger) Info(s interface{})
- func (l *Logger) Infof(s interface{}, a ...interface{})
- func (l *Logger) Success(s interface{})
- func (l *Logger) Successf(s interface{}, a ...interface{})
- func (l *Logger) Warn(s interface{})
- func (l *Logger) Warnf(s interface{}, a ...interface{})
Constants ¶
View Source
const ( RED = "\033[31m" GREEN = "\033[32m" YELLOW = "\033[93m" CYAN = "\033[36m" MAGENTA = "\033[95m" RESET = "\033[0m" )
View Source
const ( LevelNull = iota LevelDebug LevelInfo LevelWarn LevelError )
The available log levels are { levelNull:no logging, levelDebug:log out everything, levelInfo: log out Info, Warn, Error, Succes and FATAL, LevelWarn: log out Warn, Error, Success and FATAL and finally LevelError: log out Error, Success and FATAL}
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.