Vladimir Tsvetkov
Vladimir Tsvetkov

Reputation: 3013

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.

Upvotes: 15

Views: 45639

Answers (3)

Burrp Search
Burrp Search

Reputation: 1

Set sessionDebug variable to false. It will no longer print on the Tomcat console.

Upvotes: 0

rzymek
rzymek

Reputation: 9281

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

Upvotes: 10

Usman Saleem
Usman Saleem

Reputation: 1655

It goes on console. Official FAQs

Upvotes: 16

Related Questions