Skip to content

feat: add coroutine-safe LogContext propagation, samples, build refactor, and CI support#9

Merged
shivathapaa merged 14 commits into
mainfrom
feature/coroutine-aware-log-context
Apr 19, 2026
Merged

feat: add coroutine-safe LogContext propagation, samples, build refactor, and CI support#9
shivathapaa merged 14 commits into
mainfrom
feature/coroutine-aware-log-context

Conversation

@shivathapaa

Copy link
Copy Markdown
Owner

This PR introduces coroutine-safe structured logging for Kotlin Multiplatform and improves overall tooling and examples.

  • Add withSuspendingContext to core logger with documentation for thread-local limitations
  • Introduce optional logger-coroutines module with withLogContext and LogContextElement for safe context propagation across suspension points and thread hops
  • Add internal setContext API for coroutine context restoration (used by logger-coroutines)
  • Refactor build using convention plugins (kmplogger.kotlin-multiplatform, kmplogger.maven-publish)
  • Move versioning to gradle.properties
  • Update CI to support multi-module testing and publishing (:logger, :logger-coroutines)
  • Add coroutine logging demos to Compose and terminal sample apps

…h safe context merge/restore and coroutine propagation warning
…xtHolder, covering propagation, restoration, exceptions, and nested merges
…ng cleanup, override/clear behavior, and scope isolation
…cross-platform LogContext propagation with thread-safe context elements
…propagation, merging, restoration, exceptions, and concurrency isolation
…s to shared multiplatform and publishing configuration
…Context usage, and coroutine context guidance
…, and update navigation with SampleScreen enum
…ncluding coroutine context propagation and verification
@shivathapaa shivathapaa merged commit 4e62c92 into main Apr 19, 2026
3 checks passed
@shivathapaa shivathapaa deleted the feature/coroutine-aware-log-context branch April 19, 2026 03:15
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.

1 participant