Skip to content

Enhance logging and task execution handling in Android - #1

Merged
tiper merged 7 commits into
mainfrom
experimental
Aug 1, 2026
Merged

Enhance logging and task execution handling in Android#1
tiper merged 7 commits into
mainfrom
experimental

Conversation

@tiper

@tiper tiper commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@tiper
tiper requested a review from Copilot March 27, 2026 14:14
@tiper tiper self-assigned this Mar 27, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the core multiplatform logger to queue log/appender operations on a single-threaded coroutine worker, adds lazy message overloads for log calls, and tweaks platform appenders and build toolchain settings.

Changes:

  • Replaces mutex/runBlocking synchronization in LOG with a coroutine/Channel-backed serial work queue and adds lambda-based logging overloads.
  • Adjusts Apple/Android appenders’ formatting behavior (stack trace concatenation; chunk splitting output).
  • Updates Gradle JVM toolchain from 8 to 11.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 7 comments.

File Description
src/commonMain/kotlin/com/mindera/lodge/LOG.kt Serializes add/remove/log operations via a coroutine worker; adds lazy-message overloads; deduplicates appenders by loggerId.
src/appleMain/kotlin/com/mindera/lodge/appenders/OSAppender.kt Combines message + stack trace into a single OS log call.
src/androidMain/kotlin/com/mindera/lodge/appenders/LogcatAppender.kt Simplifies chunk splitting logic for long messages.
build.gradle.kts Moves compilation toolchain to JDK 11.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/appleMain/kotlin/com/mindera/lodge/appenders/OSAppender.kt
Comment thread src/commonMain/kotlin/com/mindera/lodge/LOG.kt Outdated
Comment thread src/commonMain/kotlin/com/mindera/lodge/LOG.kt
Comment thread src/commonMain/kotlin/com/mindera/lodge/LOG.kt
Comment thread src/commonMain/kotlin/com/mindera/lodge/LOG.kt
Comment thread src/commonMain/kotlin/com/mindera/lodge/LOG.kt

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 6 changed files in this pull request and generated 6 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/commonMain/kotlin/com/mindera/lodge/LOG.kt Outdated
Comment thread src/commonMain/kotlin/com/mindera/lodge/LOG.kt Outdated
Comment thread src/commonMain/kotlin/com/mindera/lodge/LOG.kt
Comment thread src/commonMain/kotlin/com/mindera/lodge/appenders/ColorPrintAppender.kt Outdated
Comment thread src/commonMain/kotlin/com/mindera/lodge/LOG.kt
Comment thread src/commonMain/kotlin/com/mindera/lodge/LOG.kt
@tiper
tiper merged commit bacebce into main Aug 1, 2026
2 checks passed
tiper added a commit that referenced this pull request Aug 1, 2026
@tiper
tiper deleted the experimental branch August 6, 2026 15:34
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