void syncLevelWithLog4j ( ) { // get the level from log4j, only the root one uses effective level Level log4jLevel = parent == null ? logger . getEffectiveLevel ( ) : logger . getLevel ( ) ; if ( level == null ) { // set the level assignLog4JLevel ( log4jLevel ) ; } else { // set the level only if differs, otherwise we may loose levels not present in log4j if ( tracerToLog4JLevel ( level ) != log4jLevel ) { assignLog4JLevel ( log4jLevel ) ; } } // the root must always have a level if ( parent == null && level == null ) { // defaults to INFO logger . setLevel ( Level . INFO ) ; level = TraceLevel . INFO ; } // reset the flags resetCacheFlags ( false ) ; }
syncs the slee tracer level with the one that related logger has in log4j