private void output ( final LogEntry logEntry , final Iterable < Writer > writers ) { if ( writingThread == null ) { for ( Writer writer : writers ) { try { writer . write ( logEntry ) ; } catch ( Exception ex ) { InternalLogger . log ( Level . ERROR , ex , "Failed to write log entry '" + logEntry . getMessage ( ) + "'" ) ; } } } else { for ( Writer writer : writers ) { writingThread . add ( writer , logEntry ) ; } } }
Outputs a log entry to all passed writers .