docs: Android logging framework research + Kotlin DSL implementation plan#390
Draft
tony19 wants to merge 3 commits into
Draft
docs: Android logging framework research + Kotlin DSL implementation plan#390tony19 wants to merge 3 commits into
tony19 wants to merge 3 commits into
Conversation
Survey the modern Android/Kotlin logging ecosystem (Timber, Kermit, Napier, kotlin-logging, square/logcat, XLog, orhanobut/logger, plus the OTel/Datadog/Sentry observability layer), map each framework's best features to concrete opportunities for logback-android, and propose a prioritized roadmap. Include a detailed, phase-by-phase implementation plan for the highest-priority item: a new logback-android-ktx module providing a type-safe Kotlin configuration DSL, lazy logging lambda extensions, and logger-name inference. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015vQzwdfzfiWmW8DQsg9ctP
Wrap bare URLs, label fenced code blocks, fix table delimiter spacing and list spacing, and add a .markdownlint.json that relaxes MD013 to 100 columns and exempts tables/code blocks, which cannot be wrapped. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015vQzwdfzfiWmW8DQsg9ctP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds two research/planning documents (no code changes):
docs/android-logging-landscape-research.md— a survey of the modern Android/Kotlin logging ecosystem as of mid-2026 (Timber, Kermit, Napier, kotlin-logging, square/logcat, XLog, orhanobut/logger, plus the OpenTelemetry/Datadog/Sentry observability layer and Chucker/Hyperion in-app viewers). For each framework it identifies the standout features and maps them to concrete ways logback-android could mimic or improve on them. Key conclusions:docs/kotlin-dsl-implementation-plan.md— a detailed, phase-by-phase implementation plan for the roadmap's top item: a newlogback-android-ktxmodule with a type-safe Kotlin configuration DSL, lazyLogger.debug { }extensions, and logger-name inference. The plan is written to be executable with minimal ambiguity: exact file paths, near-complete code skeletons for every DSL class, lifecycle-ordering rules (encoder → policy → appender), a full Robolectric test list, build/publishing wiring (Kotlin 1.8.22 against the existing AGP 7.4.2/Gradle 8.1.1), verification commands per phase, and a known-pitfalls section. All wrapped APIs were verified against the current source (e.g.FileAppender.setLazy,AndroidContextUtil.setupProperties,FileSize.valueOf).Review notes
:logback-androidmodule 100% Java; Kotlin lives only in the new module so Java consumers never pull in the Kotlin stdlib.🤖 Generated with Claude Code
https://claude.ai/code/session_015vQzwdfzfiWmW8DQsg9ctP
Generated by Claude Code