// Error is used to print info in red color.
// Message is only printed if the log level is set to lesser or equal to ERROR.
Error is used to print info in red color.
Message is only printed if the log level is set to lesser or equal to ERROR.
// Error is used to print info in red color . // Message is only printed if the log level is set to lesser or equal to ERROR .
func (cl *CLogger) Error(a ...interface{}) {
	if LogLevel <= ERROR {
		msg := fmt.Sprint(a...)
		if err := cl.Logger.Output(callDepth, getColoredMsg(msg, FgRed)); err != nil {
			log.Fatalln(err)
		}
	}
}
func ( cl * CLogger ) Error ( a ... interface { } ) { if LogLevel <= ERROR { msg := fmt . Sprint ( a ... ) if err := cl . Logger . Output ( callDepth , getColoredMsg ( msg , FgRed ) ) ; err != nil { log . Fatalln ( err ) } } }
Error is used to print info in red color.
Error is used to print info in red color .