public static void configureDefaultHandler ( int maxRepeat ) { Logger logger = LogManager . getLogManager ( ) . getLogger ( "" ) ; Handler [ ] handlers = logger . getHandlers ( ) ; RepeatRecordFilter filter = new RepeatRecordFilter ( maxRepeat ) ; for ( int ii = 0 ; ii < handlers . length ; ii ++ ) { handlers [ ii ] . setFilter ( filter ) ; } }
Configures the default logging handlers to use an instance of this filter .