// Fatal is used to print formatted fatal message in bold hi-intensity red color.
// Message is only printed if the log level is set to lesser or equal to FATAL.
// At the end it will call os.Exit(1).
Fatal is used to print formatted fatal message in bold hi-intensity red color.
Message is only printed if the log level is set to lesser or equal to FATAL.
At the end it will call os.Exit(1).
// Fatal is used to print formatted fatal message in bold hi - intensity red color . // Message is only printed if the log level is set to lesser or equal to FATAL . // At the end it will call os . Exit ( 1 ) .
func (cl *CLogger) Fatal(a ...interface{}) {
	if LogLevel <= FATAL {
		msg := fmt.Sprint(a...)
		if err := cl.Logger.Output(callDepth, getColoredMsg(msg, Bold, FgHiRed)); err != nil {
			log.Fatalln(err)
		}
		os.Exit(1)
	}
}
func ( cl * CLogger ) Fatal ( a ... interface { } ) { if LogLevel <= FATAL { msg := fmt . Sprint ( a ... ) if err := cl . Logger . Output ( callDepth , getColoredMsg ( msg , Bold , FgHiRed ) ) ; err != nil { log . Fatalln ( err ) } os . Exit ( 1 ) } }
Fatal is used to print formatted fatal message in bold hi-intensity red color.
Fatal is used to print formatted fatal message in bold hi - intensity red color .