// Errorf is used to print info in red color.
// Message is only printed if the log level is set to lesser or equal to ERROR.
Errorf is used to print info in red color.
Message is only printed if the log level is set to lesser or equal to ERROR.
// Errorf 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) Errorf(format string, a ...interface{}) {
	if LogLevel <= ERROR {
		msg := fmt.Sprintf(format, a...)
		if err := cl.Logger.Output(callDepth, getColoredMsg(msg, FgRed)); err != nil {
			log.Fatalln(err)
		}
	}
}
func ( cl * CLogger ) Errorf ( format string , a ... interface { } ) { if LogLevel <= ERROR { msg := fmt . Sprintf ( format , a ... ) if err := cl . Logger . Output ( callDepth , getColoredMsg ( msg , FgRed ) ) ; err != nil { log . Fatalln ( err ) } } }
Errorf is used to print info in red color.
Errorf is used to print info in red color .