Documentation
¶
Index ¶
- Variables
- func AsWriter(level *Level) io.Writer
- func Close()
- func Critical(msg string, data ...interface{})
- func Debug(msg string, data ...interface{})
- func Devel(msg string, data ...interface{})
- func Error(msg string, data ...interface{})
- func Exception(msg string, err error)
- func Info(msg string, data ...interface{})
- func Log(lvl *Level, msg string, data ...interface{})
- func SetLevel(writer io.Writer, lvl *Level)
- func Warn(msg string, data ...interface{})
- func WithLogDirectory(directory string, lvl *Level, ignore *Level) (err error)
- func WithWriter(writer io.Writer, lvl *Level)
- func WithWriterIgnore(writer io.Writer, lvl *Level, ignored *Level)
- type Builder
- type Level
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DEBUG = &Level{scale: 7, display: "DEBUG"} INFO = &Level{scale: 31, display: "INFO"} WARN = &Level{scale: 63, display: "WARN"} ERROR = &Level{scale: 127, display: "ERROR"} CRITICAL = &Level{scale: 255, display: "CRITICAL"} DEVEL = &Level{scale: 0, display: "DEVEL"} )
View Source
var Async = false
Functions ¶
func AsWriter ¶
This is simply a wrapper around the logger system so that interfaces which expect a Writer as a target will be able to use the logging structure we have located here.
func WithLogDirectory ¶
func WithWriter ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.