Documentation ¶
Index ¶
- Constants
- Variables
- func Debug(format string, a ...interface{})
- func DebugWithValues(values map[string]interface{}, format string, a ...interface{})
- func Err(format string, a ...interface{})
- func ErrWithError(err error, format string, a ...interface{})
- func ErrWithValues(values map[string]interface{}, format string, a ...interface{})
- func Fatal(code int, format string, a ...interface{})
- func FatalWithError(code int, err error, format string, a ...interface{})
- func Info(format string, a ...interface{})
- func InfoWithValues(values map[string]interface{}, format string, a ...interface{})
- func SeeColors()
- func SetSpecialSlug(slug string)
- func Special(format string, a ...interface{})
- func SpecialWithValues(values map[string]interface{}, format string, a ...interface{})
Constants ¶
View Source
const ( LoglvlDebug loglvl = 0 LoglvlInfo loglvl = 1 LoglvlSpecial loglvl = 2 LoglvlErr loglvl = 3 LoglvlFatal loglvl = 4 )
Variables ¶
View Source
var LOG_LVL loglvl = LoglvlDebug
View Source
var OUT io.Writer = os.Stdout
Logger Settings
View Source
var SLUG_END string = "]"
View Source
var SLUG_START string = "["
View Source
var TIME_FORMAT string = time.RFC3339
Functions ¶
func DebugWithValues ¶
func ErrWithError ¶
func ErrWithValues ¶
func FatalWithError ¶
func InfoWithValues ¶
func SetSpecialSlug ¶
func SetSpecialSlug(slug string)
func SpecialWithValues ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.