Skip to content

Comments

SLG-0005: Task-local logger proposal implementation#414

Draft
kukushechkin wants to merge 2 commits intoapple:mainfrom
kukushechkin:task-local-logger
Draft

SLG-0005: Task-local logger proposal implementation#414
kukushechkin wants to merge 2 commits intoapple:mainfrom
kukushechkin:task-local-logger

Conversation

@kukushechkin
Copy link
Contributor

This proposal adds task-local logger storage to enable progressive metadata accumulation without explicit logger parameters. It focuses on solving metadata propagation challenges in applications and libraries.

Motivation:

Modern Swift applications face challenges when trying to maintain rich, contextual logging with accumulated metadata.

Modifications:

Implemented Swift's @TaskLocal storage to automatically propagate logger with accumulated metadata outlined in the SLG-0005.

Result:

Logger object and metadata can be propagated through Swift structured concurrency.

@kukushechkin kukushechkin added the 🆕 semver/minor Adds new public API. label Feb 17, 2026
@kukushechkin kukushechkin force-pushed the task-local-logger branch 2 times, most recently from e544920 to 0f6ebeb Compare February 17, 2026 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🆕 semver/minor Adds new public API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant