code: @Override
    public void setLevel(Level level)
    {
      ClassLoader loader = Thread.currentThread().getContextClassLoader();
      
      if (loader == null) {
        loader = _systemClassLoader;
      }
  
      if (loader != _systemClassLoader) {
        if (_localLevel == null)
          _localLevel = new EnvironmentLocal<Level>();
        
        _localLevel.set(level);
        
        if (level != null) {
          addLoader(loader);
        }
      }
      else {
        _systemLevel = level;
      }
      
      updateEffectiveLevel(loader);
    }
docs: Application API to set the level.
  
  @param level the logging level to set for the logger.