Documentation ¶
Index ¶
- Variables
- func Debug(from, message string, extra ...interface{})
- func DebugC(c *gin.Context, from, message string, extra ...interface{})
- func Err(from, message string, extra ...interface{})
- func ErrC(c *gin.Context, from, message string, extra ...interface{})
- func Fatal(from, message string, extra ...interface{})
- func FatalC(c *gin.Context, from, message string, extra ...interface{})
- func Info(from, message string, extra ...interface{})
- func InfoC(c *gin.Context, from, message string, extra ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Red = "\x1b[31m" Green = "\x1b[32m" Cyan = "\x1b[36m" Yellow = "\x1b[33m" Reset = string([]byte{27, 91, 48, 109}) )
Exported colors to use outside the package
Functions ¶
func Debug ¶
func Debug(from, message string, extra ...interface{})
Debug logs a simple debug message without filling the IP field
func Err ¶
func Err(from, message string, extra ...interface{})
Err logs a simple error without filling the IP field
func Fatal ¶
func Fatal(from, message string, extra ...interface{})
Fatal logs an error message and exits the program
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.