private void addMasterJulLogRecords ( Container result ) { // this file captures the most recent of those that are still kept around in memory. // this overlaps with Jenkins.logRecords, and also overlaps with what's written in files, // but added nonetheless just in case. // // should be ignorable. result . add ( new LogRecordContent ( "nodes/master/logs/all_memory_buffer.log" ) { @ Override public Iterable < LogRecord > getLogRecords ( ) { return SupportPlugin . getInstance ( ) . getAllLogRecords ( ) ; } } ) ; final File [ ] julLogFiles = SupportPlugin . getRootDirectory ( ) . listFiles ( new LogFilenameFilter ( ) ) ; if ( julLogFiles == null ) { LOGGER . log ( Level . WARNING , "Cannot add master java.util.logging logs to the bundle. Cannot access log files" ) ; return ; } // log records written to the disk for ( File file : julLogFiles ) { result . add ( new FileContent ( "nodes/master/logs/{0}" , new String [ ] { file . getName ( ) } , file ) ) ; } }
Adds j . u . l logging output that the support - core plugin captures .