Skip to content

Logger.MetadataProvider.multiplex to not return optional#442

Closed
LePips wants to merge 1 commit into
apple:mainfrom
LePips:non-optional-multiplex-metadata-provider
Closed

Logger.MetadataProvider.multiplex to not return optional#442
LePips wants to merge 1 commit into
apple:mainfrom
LePips:non-optional-multiplex-metadata-provider

Conversation

@LePips
Copy link
Copy Markdown

@LePips LePips commented Apr 13, 2026

Motivation:

Just ran into this at work. Unless there is some reasoning I can't find on the repo or forums, this is a basic type discrepancy from SLG-0001 and an instance is always provided anyways.

@kukushechkin
Copy link
Copy Markdown
Contributor

@LePips thank you for opening the PR! Unfortunately, we cannot change Logger.MetadataProvider.multiplex(_:) at this moment, as it is part of the public API and would require a major semantic version bump to fix this oversight. Could you please instead open an issue and we will fix it in a hypothetical next major swift-log version?

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.

2 participants