Documentation ¶
Overview ¶
Package util provides simple wrapper on top of log package. You can set the logging level using Level variable.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //Level is current level of logging. See #Levels Level = "INFO" //Levels is all possible logging levels Levels = map[string]int{ "FATAL": 1, "ERROR": 2, "WARN": 3, "INFO": 4, "DEBUG": 5, } )
Functions ¶
func Debug ¶
func Debug(message string, fmt ...interface{})
Debug prints debug message if the level enabled
func Err ¶
func Err(message string, fmt ...interface{})
Err prints error message if the level enabled
func Fatalf ¶
func Fatalf(message string, fmt ...interface{})
Fatalf prints fatal message and exit the program
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.