Documentation ¶
Index ¶
- Variables
- func CUSTOM(Header string, Message string, variables ...interface{})
- func DEBUG(Message string, variables ...interface{})
- func ERROR(Message string, variables ...interface{})
- func INFO(Message string, variables ...interface{})
- func RAW(Message string)
- func SPEW(variables ...interface{})
- func TIMED(Message string, variables ...interface{}) func()
- func WARNING(Message string, variables ...interface{})
- func WEB(Message string, r *http.Request, variables ...interface{})
- func WEBFORM(Message string, r *http.Request, variables ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ColourMap = map[string]string{
"F-BLACK": "\033[1;30m",
"F-RED": "\033[1;31m",
"F-GREEN": "\033[1;32m",
"F-YELLOW": "\033[1;33m",
"F-BLUE": "\033[1;34m",
"F-MAGENTA": "\033[1;35m",
"F-CYAN": "\033[1;36m",
"F-WHITE": "\033[1;37m",
"F-NORMAL": "\033[0;37m",
"F-RESET": "\033[0m",
"B-BLACK": "\033[1;40m",
"B-RED": "\033[1;41m",
"B-GREEN": "\033[1;42m",
"B-YELLOW": "\033[1;43m",
"B-BLUE": "\033[1;44m",
"B-MAGENTA": "\033[1;45m",
"B-CYAN": "\033[1;46m",
"B-WHITE": "\033[1;47m",
}
View Source
var SHOWCOLOURS = true
View Source
var SHOWDEBUG = true
Functions ¶
func DEBUG ¶
func DEBUG(Message string, variables ...interface{})
DEBUG - Write a DEBUG message to the LOG
func ERROR ¶
func ERROR(Message string, variables ...interface{})
ERROR - Write an ERROR message to the LOG
func INFO ¶
func INFO(Message string, variables ...interface{})
INFO - Write an INFO Message and write to the logs.
func TIMED ¶
func TIMED(Message string, variables ...interface{}) func()
TIMED - Start a timer and return a function to call once complete.
func WARNING ¶
func WARNING(Message string, variables ...interface{})
WARNING - Write a Warning message to the Log
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.