You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
The default behaviour of Jakarta Mail is to push smtp debug logs to std out. It's not a viable solution for my use case; I need to redirect these logs to the Slf4j logger.
To achieve that, I'm accessing Session object directly and setting a custom printer: mailer.getSession().setDebugOut(new Slf4jPrinter(logger));
(the printer is my custom implementation)
Enhancement:
Allow configuring the debug printer directly in the configuration .withDebugPrinter(printer)
The text was updated successfully, but these errors were encountered:
Hello!
The default behaviour of Jakarta Mail is to push smtp debug logs to std out. It's not a viable solution for my use case; I need to redirect these logs to the Slf4j logger.
To achieve that, I'm accessing Session object directly and setting a custom printer:
mailer.getSession().setDebugOut(new Slf4jPrinter(logger));
(the printer is my custom implementation)
Enhancement:
Allow configuring the debug printer directly in the configuration
.withDebugPrinter(printer)
The text was updated successfully, but these errors were encountered: