//Update the flags based on the severity level
Update the flags based on the severity level
// Update the flags based on the severity level
func (l *Logger) updateLvlFlags() error {
	if l.sev < 0 || l.sev > 5 {
		return errors.New("Invalid severity ")
	}
	l.errorEnabled = l.sev >= 1
	l.warnEnabled = l.sev >= 2
	l.infoEnabled = l.sev >= 3
	l.debugEnabled = l.sev >= 4
	l.traceEnabled = l.sev == 5
	return nil
}
func ( l * Logger ) updateLvlFlags ( ) error { if l . sev < 0 || l . sev > 5 { return errors . New ( " " ) } l . errorEnabled = l . sev >= 1 l . warnEnabled = l . sev >= 2 l . infoEnabled = l . sev >= 3 l . debugEnabled = l . sev >= 4 l . traceEnabled = l . sev == 5 return nil }
Update the flags based on the severity level
Update the flags based on the severity level