Documentation ¶
Overview ¶
Package clog implements custom logging.
Index ¶
- func Deff(format string, a ...interface{})
- func Defln(a ...interface{})
- func DisableVerbosity()
- func EnableVerbosity()
- func GetVerbosity() bool
- func Preff(prefix string, format string, a ...interface{})
- func Prefln(prefix string, a ...interface{})
- func SetPrefix(f func() string)
- func Tracef(format string, a ...interface{})
- func Traceln(a ...interface{})
- func VerbDeff(format string, a ...interface{})
- func VerbDefln(a ...interface{})
- func Verbf(format string, a ...interface{})
- func Verbln(a ...interface{})
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Deff ¶ added in v0.3.0
func Deff(format string, a ...interface{})
Deff is a fmt.Printf() using the default prefix.
func Defln ¶ added in v0.3.0
func Defln(a ...interface{})
Defln is a fmt.Println() using the default prefix.
func GetVerbosity ¶
func GetVerbosity() bool
GetVerbosity returns true if verbose output is enabled.
func Preff ¶
Preff is a fmt.Printf() using the default prefix plus given prefix.
func Prefln ¶
func Prefln(prefix string, a ...interface{})
Prefln is a fmt.Println() using the default prefix plus given prefix.
func SetPrefix ¶ added in v0.4.0
func SetPrefix(f func() string)
SetPrefix takes a string returning function to override the default prefix.
func Tracef ¶
func Tracef(format string, a ...interface{})
Tracef is a verbose Printf() using the default prefix plus the calling function's name as prefix.
func Traceln ¶
func Traceln(a ...interface{})
Traceln is a verbose Println() using the default prefix plus the calling function's name as prefix.
func VerbDeff ¶ added in v0.5.0
func VerbDeff(format string, a ...interface{})
VerbDeff is a verbose fmt.Printf() using the default prefix.
func VerbDefln ¶ added in v0.5.0
func VerbDefln(a ...interface{})
VerbDefln is a verbose fmt.Println() using the default prefix.
Types ¶
This section is empty.