Documentation
¶
Overview ¶
Package logg provides some convenience functions on top of the "log" package from the stdlib. It always uses the stdlib's standard logger.
The functions in this package work like log.Println() or like log.Printf() depending on whether arguments are passed after the message string:
import ( "log" "github.com/sapcc/go-bits/logg" ) //The following two are equivalent: logg.Info("starting up") std_log.Println("INFO: starting up") //The following two are equivalent: logg.Info("listening on port %d", port) std_log.Printf("INFO: listening on port %d\n", port)
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ShowDebug can be set to true to enable the display of debug logs. ShowDebug = false )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.