Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger = prodLogger
Functions ¶
func ChooseLogger ¶
func ChooseLogger(loggingLvl LoggingLevel)
func PrintError ¶
func PrintError(err error)
func PrintWarning ¶
func PrintWarning(message string)
Types ¶
type LoggingLevel ¶
type LoggingLevel int
const ( DevLoggingLvl LoggingLevel = iota ProdLoggingLvl )
func ConvStrToLoggingLvl ¶
func ConvStrToLoggingLvl(str string) LoggingLevel
type PrefixedError ¶
type PrefixedError struct {
Reason error
}
func (*PrefixedError) Error ¶
func (pe *PrefixedError) Error() string
Click to show internal directories.
Click to hide internal directories.