// Panicf is used to print formatted panic message in bold red color.
// Message is only printed if the log level is set to lesser or equal to PANIC.
Panicf is used to print formatted panic message in bold red color.
Message is only printed if the log level is set to lesser or equal to PANIC.
// Panicf is used to print formatted panic message in bold red color . // Message is only printed if the log level is set to lesser or equal to PANIC .
func (cl *CLogger) Panicf(format string, a ...interface{}) {
	if LogLevel <= PANIC {
		msg := fmt.Sprintf(format, a...)
		if err := cl.Logger.Output(callDepth, getColoredMsg(msg, Bold, FgRed)); err != nil {
			log.Fatalln(err)
		}
		panic(msg)
	}
}
func ( cl * CLogger ) Panicf ( format string , a ... interface { } ) { if LogLevel <= PANIC { msg := fmt . Sprintf ( format , a ... ) if err := cl . Logger . Output ( callDepth , getColoredMsg ( msg , Bold , FgRed ) ) ; err != nil { log . Fatalln ( err ) } panic ( msg ) } }
Panicf is used to print formatted panic message in bold red color.
Panicf is used to print formatted panic message in bold red color .