Skip to content

Add option to configure smtp debug printer #589

Open
@michal-krajewski

Description

@michal-krajewski

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions