Skip to content

Properly make MessageFormatter and FormattingTuple public#12763

Merged
normanmaurer merged 1 commit intonetty:4.1from
geoand:logging-public
Sep 2, 2022
Merged

Properly make MessageFormatter and FormattingTuple public#12763
normanmaurer merged 1 commit intonetty:4.1from
geoand:logging-public

Conversation

@geoand
Copy link
Copy Markdown
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