public static void configureDefaultHandler ( Formatter formatter ) { Logger logger = LogManager . getLogManager ( ) . getLogger ( "" ) ; for ( Handler handler : logger . getHandlers ( ) ) { handler . setFormatter ( formatter ) ; } }
Configures the default logging handler to use an instance of the specified formatter when formatting messages .