Hi,

I see in the docs (http://logback.qos.ch/manual/appenders.html) it says "SMTP email transmission (sending) is performed asynchronously".  I'm looking on grepcode.com at version 1.2.25.  I can't see how it is sending asynchronously.

SMTPAppender.java
void append(LoggingEvent event) {
...
      sendBuffer();
...
}



void sendBuffer() {
...
      Transport.send(
);
 ...
}


Transport.java
public static void send(Message msgAddress[] addresses
throws MessagingException {
	msg.saveChanges();
	send0(msgaddresses);
    }
private static void send0(Message msgAddress[] addresses
throws MessagingException {
...
	/*
	 * Optimize the case of a single protocol.
	 */
	if (dsize == 1) {
	    transport = s.getTransport(addresses[0]);
	    try {
		transport.connect();
		transport.sendMessage(msgaddresses);
	    } finally {
		transport.close();
	    }
	    return;
	}
...
}

_______________________________________________
slf4j-user mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/slf4j-user

Reply via email to