Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to set the debug log level in javamail?

popanzDec 5 2016 — edited Dec 11 2016

Hello,

when activating the debug logging on sending mails with javamail thru property "mail.debug" or thru javax.mail.Session.setDebug(true), you always get at huge debug output, including the whole content of the sent mails, and even including the binary code of all attachments.

When sending a newsletter with attachments to 20.000 receivers, this output gets insane.

Is there any way to at least skip the log output of the mail contents, or at least of the attachments?

All I found for influencing the debug log is the on/off switch mentioned before.

But no way to simply set the log level...?

Thanks for help!

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 8 2017
Added on Dec 5 2016
9 comments
26,741 views