// Warnf is used to print a formatted warning message in yellow color.
// Info is only printed if the log level is set to lesser or equal to WARN.
Warnf is used to print a formatted warning message in yellow color.
Info is only printed if the log level is set to lesser or equal to WARN.
// Warnf is used to print a formatted warning message in yellow color . // Info is only printed if the log level is set to lesser or equal to WARN .
func (cl *CLogger) Warnf(format string, a ...interface{}) {
	if LogLevel <= WARN {
		msg := fmt.Sprintf(format, a...)
		if err := cl.Logger.Output(callDepth, getColoredMsg(msg, Bold, FgYellow)); err != nil {
			log.Fatalln(err)
		}
	}
}
func ( cl * CLogger ) Warnf ( format string , a ... interface { } ) { if LogLevel <= WARN { msg := fmt . Sprintf ( format , a ... ) if err := cl . Logger . Output ( callDepth , getColoredMsg ( msg , Bold , FgYellow ) ) ; err != nil { log . Fatalln ( err ) } } }
Warnf is used to print a formatted warning message in yellow color.
Warnf is used to print a formatted warning message in yellow color .