Documentation ¶
Index ¶
Constants ¶
View Source
const ( // VerbosityError shows only error messages VerbosityError = Verbosity(iota) // VerbosityWarning shows error and warning messages VerbosityWarning = Verbosity(iota) // VerbosityNote shows error, warning and note messages VerbosityNote = Verbosity(iota) // VerbosityDebug shows all messages VerbosityDebug = Verbosity(iota) )
Variables ¶
View Source
var ( // Error is a predefined log channel for errors. This log is backed by consumer.Log Error = log.New(logDisabled, "", 0) // Warning is a predefined log channel for warnings. This log is backed by consumer.Log Warning = log.New(logDisabled, "", 0) // Note is a predefined log channel for notes. This log is backed by consumer.Log Note = log.New(logDisabled, "", 0) // Debug is a predefined log channel for debug messages. This log is backed by consumer.Log Debug = log.New(logDisabled, "", 0) )
Functions ¶
func SetVerbosity ¶
func SetVerbosity(loglevel Verbosity)
SetVerbosity defines the type of messages to be processed. High level verobosities contain lower levels, i.e. log level warning will contain error messages, too.
Types ¶
Click to show internal directories.
Click to hide internal directories.