// 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.
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.
// 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 .
func SetVerbosity(loglevel Verbosity) {
	Error = log.New(logDisabled, "", 0)
	Warning = log.New(logDisabled, "", 0)
	Note = log.New(logDisabled, "", 0)
	Debug = log.New(logDisabled, "", 0)
	switch loglevel {
	default:
		fallthrough
	case VerbosityDebug:
		Debug = log.New(&logEnabled, tfmt.Colorize(tfmt.Cyan, tfmt.NoBackground, "Debug: "), 0)
		fallthrough
	case VerbosityNote:
		Note = log.New(&logEnabled, "", 0)
		fallthrough
	case VerbosityWarning:
		Warning = log.New(&logEnabled, tfmt.Colorize(tfmt.Yellow, tfmt.NoBackground, "Warning: "), 0)
		fallthrough
	case VerbosityError:
		Error = log.New(&logEnabled, tfmt.Colorize(tfmt.Red, tfmt.NoBackground, "ERROR: "), log.Lshortfile)
	}
}
func SetVerbosity ( loglevel Verbosity ) { Error = log . New ( logDisabled , " " , 0 ) Warning = log . New ( logDisabled , " " , 0 ) Note = log . New ( logDisabled , " " , 0 ) Debug = log . New ( logDisabled , " " , 0 ) switch loglevel { default : fallthrough case VerbosityDebug : Debug = log . New ( & logEnabled , tfmt . Colorize ( tfmt . Cyan , tfmt . NoBackground , " " ) , 0 ) fallthrough case VerbosityNote : Note = log . New ( & logEnabled , " " , 0 ) fallthrough case VerbosityWarning : Warning = log . New ( & logEnabled , tfmt . Colorize ( tfmt . Yellow , tfmt . NoBackground , " " ) , 0 ) fallthrough case VerbosityError : Error = log . New ( & logEnabled , tfmt . Colorize ( tfmt . Red , tfmt . NoBackground , " " ) , log . Lshortfile ) } }
SetVerbosity defines the type of messages to be processed.
SetVerbosity defines the type of messages to be processed .