jakartaee / jakartaee/mail-api

enable changing log level on a per-connection basis

Open
#161 5 comments 0 reactions 1 assignee Claimed by @bshannon View on GitHub
Component: generic enhancement Priority: P5
Dominant language
Java
Stars
285
Forks
109
Avg merge
15h 19m
Merged PRs (30d)
1

Description

There does not appear to be a way to change the log level or to suspend debug tracing for a single client connection. There are a few workarounds for this, like writing a custom toggleable PrintStream and passing it to Session.setDebugOut(), but it seems like it'd be significantly cleaner to have a Store API (or something similar).

There is a Protocol.suspendTracing method which temporarily turns off protocol trace output, but it's not visible by user code.
#### Affected Versions
1.5.3
#### Environment
Macintosh
Mac OS

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.