Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What should the mail.debug=true option of javax.mail do?

In the configuration properties of my javax.mail.Session I have set mail.debug=true, but for some reason, this doesn't add any new output to the application log.

I've set the log4f logging level to ALL log4j.rootLogger=ALL, stdout and yet... nothing.

Is it possible that the javax.mail debug output is written somewhere else? Sounds unlikely, but nevertheless I thought it worth asking.

like image 328
Vladimir Tsvetkov Avatar asked Oct 19 '11 12:10

Vladimir Tsvetkov


2 Answers

It goes on console. Official FAQs

like image 124
Usman Saleem Avatar answered Sep 19 '22 21:09

Usman Saleem


Setting log level of com.sun.mail.smtp to DEBUG worked on Wildfly(JBoss)

like image 30
rzymek Avatar answered Sep 22 '22 21:09

rzymek