Skip to content

refactor(logging): migrate logging to kermit-io and remove legacy event log - #751

Merged
haiphucnguyen merged 2 commits into
mainfrom
feature/improvements
Oct 5, 2026
Merged

haiphucnguyen merged 2 commits into
mainfrom
feature/improvements

Conversation

@haiphucnguyen

Copy link
Copy Markdown
Collaborator

Summary

  • 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.

Related Issue(s)

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 💥 Breaking change
  • 📝 Documentation
  • ♻️ Refactor (no functional change)
  • 🧪 Tests
  • 🔧 Chore / tooling / CI

What Changed & Why

How to Test

./gradlew test

Screenshots / Recordings (if applicable)

Checklist

  • I have read the CONTRIBUTING guide
  • My branch is up to date with main
  • I ran ./gradlew spotlessApply and ./gradlew detekt locally
  • I ran ./gradlew test and all tests pass
  • I added/updated tests for my changes (if applicable)
  • I added/updated documentation (if applicable)
  • My commits are signed off (DCO) — git commit -s
  • This PR is focused on a single feature/fix

Additional Notes

…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.
Copilot AI balanced review requested due to automatic review settings October 5, 2026 04:23

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.

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 High severity · 1 Medium severity

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.

Comment thread cli/build.gradle.kts Resolved
@haiphucnguyen
haiphucnguyen merged commit 533c071 into main Oct 5, 2026
8 of 10 checks passed
@haiphucnguyen
haiphucnguyen deleted the feature/improvements branch October 5, 2026 04:30
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