Repository navigation
refactor(logging): migrate logging to kermit-io and remove legacy event log - #751
Merged
Merged
Conversation
…nt log - Switch all logging from slf4j/logback to kermit-io with rolling file writer. - Drop slf4j and logback dependencies from Gradle and remove related classes (EventBusAppender, LogbackConfigurator). - Eliminate the event log UI components and developer mode event handling. - Remove EventType.DEVELOPER and the associated EventBus.developerEvents flow. - Update i18n resource files and menu actions to no longer reference the event log. - Adjust ExceptionMapper to dedupe messages using a Set and keep full details in UserException. - Change OpenAI delegate reasoning summary to “auto”. - Clean up Gradle libraries, adding kermit-io and removing unused logging libs. BREAKING CHANGE: The `EventBus.developerEvents` stream and `EventType.DEVELOPER` are no longer available. Clients should remove any usage of developer‑mode events and the event log UI; logging is now handled via `LoggingService` with kermit-io.
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The CLI retains Logback source references after removing its dependencies, and invalid-request details are exposed without bounds.
Review effort: Balanced
Findings: 1
Open (2)
What changed in this PR
Migrates desktop logging to Kermit IO, removes the legacy developer event log, and adjusts exception and OpenAI response handling.
Changes:
- Adds rolling Kermit file logging and removes Logback infrastructure.
- Removes developer events and event-log UI.
- Deduplicates exception messages and changes reasoning summaries to automatic.
| File | Description |
|---|---|
shared/src/commonMain/kotlin/io/askimo/core/event/EventBus.kt |
Removes developer event flow. |
shared/src/commonMain/kotlin/io/askimo/core/event/Event.kt |
Removes developer event types. |
shared-jvm/src/main/kotlin/io/askimo/core/providers/openaicompatible/ResponsesApiDelegate.kt |
Uses automatic reasoning summaries. |
shared-jvm/src/main/kotlin/io/askimo/core/exception/UserException.kt |
Preserves full invalid-request details. |
shared-jvm/src/main/kotlin/io/askimo/core/exception/ExceptionMapper.kt |
Deduplicates chained messages. |
shared-jvm/src/main/kotlin/io/askimo/core/event/dev/LoggingEvent.kt |
Deletes developer logging events. |
gradle/libs.versions.toml |
Adds Kermit IO and removes Logback libraries. |
desktop/src/main/kotlin/io/askimo/desktop/shell/ComposeTopMenuBar.kt |
Removes event-log menu action. |
desktop/src/main/kotlin/io/askimo/desktop/Main.kt |
Initializes Kermit and removes event-log UI state. |
desktop-shared/src/main/resources/i18n/messages.properties |
Removes event-log strings. |
desktop-shared/src/main/resources/i18n/messages_zh_TW.properties |
Removes event-log translations. |
desktop-shared/src/main/resources/i18n/messages_zh_CN.properties |
Removes event-log translations. |
desktop-shared/src/main/resources/i18n/messages_vi_VN.properties |
Removes event-log translations. |
desktop-shared/src/main/resources/i18n/messages_pt_BR.properties |
Removes event-log translations. |
desktop-shared/src/main/resources/i18n/messages_ko_KR.properties |
Removes event-log translations. |
desktop-shared/src/main/resources/i18n/messages_ja_JP.properties |
Removes event-log translations. |
desktop-shared/src/main/resources/i18n/messages_fr.properties |
Removes event-log translations. |
desktop-shared/src/main/resources/i18n/messages_es.properties |
Removes event-log translations. |
desktop-shared/src/main/resources/i18n/messages_de.properties |
Removes event-log translations. |
desktop-shared/src/main/kotlin/io/askimo/ui/shell/NativeMenuBar.kt |
Removes native event-log menu item. |
desktop-shared/src/main/kotlin/io/askimo/ui/shell/EventLogWindow.kt |
Deletes detached event-log UI. |
desktop-shared/src/main/kotlin/io/askimo/ui/shell/EventLogPanel.kt |
Deletes docked event-log UI. |
desktop-shared/src/main/kotlin/io/askimo/ui/shell/EventLogDockPosition.kt |
Deletes event-log docking model. |
desktop-shared/src/main/kotlin/io/askimo/ui/shell/DeveloperModePreferences.kt |
Removes appender lifecycle handling. |
desktop-shared/src/main/kotlin/io/askimo/core/logging/LoggingService.kt |
Configures rolling Kermit file logging. |
desktop-shared/src/main/kotlin/io/askimo/core/logging/LogbackConfigurator.kt |
Deletes Logback configuration utility. |
desktop-shared/src/main/kotlin/io/askimo/core/logging/EventBusAppender.kt |
Deletes Logback event-bus appender. |
desktop-shared/build.gradle.kts |
Replaces Logback with Kermit IO. |
cli/build.gradle.kts |
Removes Logback dependencies. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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
Related Issue(s)
Type of Change
What Changed & Why
How to Test
./gradlew testScreenshots / Recordings (if applicable)
Checklist
main./gradlew spotlessApplyand./gradlew detektlocally./gradlew testand all tests passgit commit -sAdditional Notes