// SetLogLevel changes the log level of a specific subsystem
// name=="*" changes all subsystems
SetLogLevel changes the log level of a specific subsystem
name=="*" changes all subsystems
// SetLogLevel changes the log level of a specific subsystem // name == " * " changes all subsystems
func SetLogLevel(name, level string) error {
	lvl, err := LevelFromString(level)
	if err != nil {
		return err
	}
	if name == "*" {
		SetAllLoggers(lvl)
		return nil
	}
	loggerMutex.RLock()
	defer loggerMutex.RUnlock()
	if _, ok := levels[name]; !ok {
		return ErrNoSuchLogger
	}
	levels[name].SetLevel(zapcore.Level(lvl))
	return nil
}
func SetLogLevel ( name , level string ) error { lvl , err := LevelFromString ( level ) if err != nil { return err } if name == " " { SetAllLoggers ( lvl ) return nil } loggerMutex . RLock ( ) defer loggerMutex . RUnlock ( ) if _ , ok := levels [ name ] ; ! ok { return ErrNoSuchLogger } levels [ name ] . SetLevel ( zapcore . Level ( lvl ) ) return nil }
SetLogLevel changes the log level of a specific subsystem
name=="*" changes all subsystems
SetLogLevel changes the log level of a specific subsystem name == " * " changes all subsystems
// wildcard, change all // Check if we have a logger by that name