feat: add log rotation, non-blocking writes, and CLI log flags#398
Merged
Conversation
Replace synchronous single-file logging with tracing-appender for daily log rotation and non-blocking background writes. Add --log-level and --log-path CLI flags for controlling log verbosity and output directory. The --log-level flag applies only to project crates while keeping external dependencies at warn level. RUST_LOG still takes precedence. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Merged
simonrw
pushed a commit
that referenced
this pull request
Apr 7, 2026
## 🤖 New release
* `dap-gui-config`: 0.1.0 -> 0.2.0 (⚠ API breaking changes)
* `dap-gui-ui-core`: 0.1.0 -> 0.1.1 (✓ API compatible changes)
* `dap-gui-egui`: 0.1.0 -> 0.1.1
* `dap-tui`: 0.1.0 -> 0.1.1
### ⚠ `dap-gui-config` breaking changes
```text
--- failure constructible_struct_adds_field: externally-constructible struct adds field ---
Description:
A pub struct constructible with a struct literal has a new pub field. Existing struct literals must be updated to include the new field.
ref: https://doc.rust-lang.org/reference/expressions/struct-expr.html
impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.46.0/src/lints/constructible_struct_adds_field.ron
Failed in:
field Config.theme in /tmp/.tmppHoepB/dap-gui/crates/config/src/lib.rs:26
```
<details><summary><i><b>Changelog</b></i></summary><p>
## `dap-gui-config`
<blockquote>
##
[0.2.0](dap-gui-config-v0.1.0...dap-gui-config-v0.2.0)
- 2026-04-07
### Added
- add automatic dark/light theme switching based on system preference
([#397](#397))
### Other
- release v0.1.0 ([#394](#394))
</blockquote>
## `dap-gui-ui-core`
<blockquote>
##
[0.1.1](dap-gui-ui-core-v0.1.0...dap-gui-ui-core-v0.1.1)
- 2026-04-07
### Added
- add automatic dark/light theme switching based on system preference
([#397](#397))
- add log rotation, non-blocking writes, and CLI log flags
([#398](#398))
- use launch config cwd and show file browser overflow
([#396](#396))
- add configurable keybindings with TOML config file
([#393](#393))
</blockquote>
## `dap-gui-egui`
<blockquote>
##
[0.1.1](dap-gui-egui-v0.1.0...dap-gui-egui-v0.1.1)
- 2026-04-07
### Added
- add automatic dark/light theme switching based on system preference
([#397](#397))
- use launch config cwd and show file browser overflow
([#396](#396))
- add configurable keybindings with TOML config file
([#393](#393))
</blockquote>
## `dap-tui`
<blockquote>
##
[0.1.1](dap-tui-v0.1.0...dap-tui-v0.1.1)
- 2026-04-07
### Added
- add automatic dark/light theme switching based on system preference
([#397](#397))
- add log rotation, non-blocking writes, and CLI log flags
([#398](#398))
- use launch config cwd and show file browser overflow
([#396](#396))
- add readline keybindings and input history to all text input fields
- add configurable keybindings with TOML config file
([#393](#393))
- default to file picker panel on startup without target
</blockquote>
</p></details>
---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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
tracing-appenderfor daily log rotation (files namedtui.log.YYYY-MM-DD) and non-blocking background writes so logging never blocks the UI render loop--log-levelCLI flag (trace/debug/info/warn/error, defaultinfo) that applies only to project crates while keeping external dependencies atwarn.RUST_LOGenv var still takes precedence--log-pathCLI flag to override the log directory (defaults to~/.local/share/dapgui/)Test plan
cargo check --all-targets --all-featurespassescargo xtask test— 393 tests passcargo xtask doctestpassesdap-tui, quit, verify dated log files appear in~/.local/share/dapgui/dap-tui --log-level debugand verify debug-level output from project crates onlydap-tui --log-path /tmp/test-logsand verify logs go to that directory🤖 Generated with Claude Code