public void restore ( ) { if ( ! restored ) { // Remove the extra Handler from the RootLogger rootLogger . removeHandler ( mavenLogHandler ) ; // Restore the original state to the Root logger rootLogger . setLevel ( originalRootLoggerLevel ) ; for ( Handler current : originalHandlers ) { rootLogger . addHandler ( current ) ; } // All done. restored = true ; } }
Restores the original root Logger state including Level and Handlers .