[logback-user] SMTPAppender mail not sent (logback 1.0.0, JDK 1.5)

Dave dsw2dev at twmi.rr.com
Thu May 3 01:48:13 CEST 2012


I've found the source of the SMTPAppender issues.  It with the 
ThreadPoolExecutor defined in the ContextBase class

   // 0 idle threads, 2 maximum threads, no idle waiting
   ExecutorService executorService = new ThreadPoolExecutor(0, 2, 0L, 
TimeUnit.MILLISECONDS, new LinkedBlockingQueue<Runnable>());

If you increase the first parameter (which is the initial pool size) from 0 to 
2, then it works as expected in both JRE 1.5 and 1.6.

-dave


More information about the Logback-user mailing list