// Warn 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.
Warn 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.
// Warn 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) Warn(a ...interface{}) {
	if LogLevel <= WARN {
		msg := fmt.Sprint(a...)
		if err := cl.Logger.Output(callDepth, getColoredMsg(msg, Bold, FgYellow)); err != nil {
			log.Fatalln(err)
		}
	}
}
func ( cl * CLogger ) Warn ( a ... interface { } ) { if LogLevel <= WARN { msg := fmt . Sprint ( a ... ) if err := cl . Logger . Output ( callDepth , getColoredMsg ( msg , Bold , FgYellow ) ) ; err != nil { log . Fatalln ( err ) } } }
Warn is used to print a formatted warning message in yellow color.
Warn is used to print a formatted warning message in yellow color .