Skip to content

feat: file logging with daily rotation - #66

Merged
ajianaz merged 1 commit into
developfrom
feat/file-logging-rotation
May 29, 2026
Merged

feat: file logging with daily rotation#66
ajianaz merged 1 commit into
developfrom
feat/file-logging-rotation

Conversation

@ajianaz

@ajianaz ajianaz commented May 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

Layered tracing subscriber: console (existing behavior) + file (always DEBUG, daily rotation).

Changes

  • crates/uteke-cli/Cargo.toml: Added tracing-appender = "0.2"
  • crates/uteke-cli/src/main.rs: Replaced single subscriber with layered setup:
    • Console layer: respects --verbose flag (DEBUG or WARN), same as before
    • File layer: always DEBUG, daily rotation at ~/.uteke/uteke.log
    • Non-blocking writer with WorkerGuard kept alive for process lifetime

Verification

  • cargo check
  • cargo clippy --all-targets ✓ (no warnings)
  • cargo test --all ✓ (15/15 tests pass)
  • cargo fmt --check ✓ (formatted)

Closes #32

Layered subscriber: console (existing behavior) + file (always DEBUG).
File appender: daily rotation at ~/.uteke/uteke.log via non-blocking
writer. WorkerGuard kept alive for process lifetime.

Closes #32
@coderabbitai

coderabbitai Bot commented May 29, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@ajianaz, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 48 minutes and 19 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 83568b57-d78f-4f05-8155-2ac8d1f7645c

📥 Commits

Reviewing files that changed from the base of the PR and between 30ef4e7 and bd3ed59.

📒 Files selected for processing (2)
  • crates/uteke-cli/Cargo.toml
  • crates/uteke-cli/src/main.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/file-logging-rotation

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ajianaz
ajianaz merged commit 4fcfe0e into develop May 29, 2026
7 checks passed
@ajianaz
ajianaz deleted the feat/file-logging-rotation branch May 30, 2026 04:55
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.

File logging — rotated logs to ~/.uteke/uteke.log

1 participant