if (firstLogEvent == true) {
if (nofAppenders == 0) {
System.err
.println("Warning! No appender is set, using ConsoleAppender with PatternFormatter");
Appender appender = new ConsoleAppender();
appender.setFormatter(new PatternFormatter());
addAppender(appender);
nofAppenders++;
}
try {
open();
} catch (IOException e) {
System.err.println("Failed to open the log. " + e);
}
stopWatch.start();
firstLogEvent = false;
}
for (int index = 0; index < nofAppenders; index++) {
Appender appender = (Appender) appenderList.elementAt(index);
appender.doLog(clientID, name, stopWatch.getCurrentTime(),
level, message, t);
}
}
}