@ 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 ) ; }
Application API to set the level .