@ Override public synchronized void update ( LogProviderConfig config ) { // Get the configured log location, and derive the ffdc location from it File location = config . getLogDirectory ( ) ; if ( location == null ) { location = new File ( "." ) ; } location = new File ( location , FFDCConfigurator . FFDC_DIR ) ; ffdcLogDirectory = location ; int maxFiles = config . getMaxFiles ( ) ; // Creation and rolling of files should be done as the server Object token = ThreadIdentityManager . runAsServer ( ) ; try { summaryLogSet . update ( location , FFDCConfigurator . FFDC_SUMMARY_FILE_NAME , FFDCConfigurator . FFDC_EXTENSION , maxFiles ) ; synchronized ( ffdcLogSet ) { ffdcLogSet . update ( location , FFDCConfigurator . FFDC_FILE_NAME , FFDCConfigurator . FFDC_EXTENSION , 0 /* unlimited */ ) ; } } finally { ThreadIdentityManager . reset ( token ) ; } }
Update the FFDC service based on the provided configuration