private void write ( final Collection < Writer > writers , final Task task ) { try { Writer writer = task . writer ; writer . write ( task . logEntry ) ; if ( ! writers . contains ( writer ) ) { writers . add ( writer ) ; } } catch ( Exception ex ) { InternalLogger . log ( Level . ERROR , ex , "Failed to write log entry '" + task . logEntry . getMessage ( ) + "'" ) ; } }
Writes a log entry .