Documentation
¶
Index ¶
- Constants
- Variables
- func Debug(fmt string, a ...interface{})
- func Error(fmt string, a ...interface{})
- func Exit(fmts string, args ...interface{})
- func Fatal(fmta string, a ...interface{})
- func Info(fmt string, a ...interface{})
- func Print(fmts string, args ...interface{})
- func Query(fmt string, a ...interface{})
- func SetLevel(lvalue int)
Constants ¶
View Source
const ( FATAL = 100 ERROR = 40 INFO = 20 DEBUG = 10 QUERY = 5 )
Level values
Variables ¶
View Source
var LEVELSTRINGS = map[string]int{ "FATAL": FATAL, "ERROR": ERROR, "INFO": INFO, "DEBUG": DEBUG, "QUERY": QUERY, "TRACE": QUERY, }
LEVELSTRINGS provides log level aliases.
View Source
var Level = ERROR
Level is the log level.
View Source
var LogQuery = false
LogQuery is a flag for logging database queries.
View Source
var STRINGLEVEL = map[int]string{}
STRINGLEVEL is the reverse mapping
Functions ¶
func Print ¶
func Print(fmts string, args ...interface{})
Print - simple print, without timestamp, without regard to log level.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.