Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly make MessageFormatter and FormattingTuple public #12763

Merged
merged 1 commit into from
Sep 2, 2022

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Sep 1, 2022

Motivation:

Taken from #12761

Classes io.netty.util.internal.logging.FormattingTuple and io.netty.util.internal.logging.MessageFormatter are public classes, but the latters's format methods are package-private while the former's constructor is package-private making their use in custom in InternalLoggerFactory implementations impossible.

Modification:

Make necessary methods public

Result:

Fixes #12761.

@chrisvest chrisvest added this to the 4.1.81.Final milestone Sep 1, 2022
@normanmaurer normanmaurer merged commit 5256f36 into netty:4.1 Sep 2, 2022
normanmaurer pushed a commit that referenced this pull request Sep 2, 2022
Motivation:

_Taken from #12761_

Classes `io.netty.util.internal.logging.FormattingTuple` and `io.netty.util.internal.logging.MessageFormatter` are public classes, but the latters's format methods are package-private while the former's constructor is package-private making their use in custom in InternalLoggerFactory implementations impossible.

Modification:

Make necessary methods public

Result:

Fixes #12761.
@geoand geoand deleted the logging-public branch September 2, 2022 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make MessageFormatter and FormattingTuple public
4 participants