/** * Initialize the central log store. If it has already been initialized the configuration will be updated. * * @param maxSize * the maximum size of the log buffer * @param maxLogTimeoutMinutes * The maximum time that a log line times out in minutes */ private static synchronized void init0( int maxSize, int maxLogTimeoutMinutes, boolean redirectStdOut, boolean redirectStdErr ) { if ( store != null ) { // CentralLogStore already initialized. Just update the values. store.appender.setMaxNrLines( maxSize ); store.replaceLogCleaner( maxLogTimeoutMinutes ); } else { store = new KettleLogStore( maxSize, maxLogTimeoutMinutes, redirectStdOut, redirectStdErr ); } initialized.set( true ); }