typesafehub/play-plugins — pull request #132 by mkurz (2014-10-23 20:17:24+00:00)
Title: Redirect javax.mail logging to play.Logger

This PR enhances the work/commits done in PR #109 so when setting `smtp.debug=true` the debug information written by `javax.mail` will be redirected to the Play Logger.
By default javax.mail [writes debug information to System.out](http://www.oracle.com/technetwork/java/faq-135477.html#debug). If you are interested you can dig into [the source of javax.mail.Session](http://grepcode.com/file/repo1.maven.org/maven2/com.sun.mail/javax.mail/1.4.4/javax/mail/Session.java) to see how it handles logging (`getDebugOut`, `setDebugOut` and `pr` are the interesting methods).

This PR is based on [this question on stackoverflow](http://stackoverflow.com/questions/2118370).