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