Skip to content

feat: add log level control to Logger and CLI verbose flags#78

Merged
linroid merged 1 commit intomainfrom
feat/cli-log-level
Feb 14, 2026
Merged

feat: add log level control to Logger and CLI verbose flags#78
linroid merged 1 commit intomainfrom
feat/cli-log-level

Conversation

@linroid
Copy link
Owner

@linroid linroid commented Feb 14, 2026

Summary

  • Add LogLevel enum (VERBOSE, DEBUG, INFO, WARN, ERROR) to library:core Logger API
  • Logger.console(minLevel) now filters messages below the configured level without evaluating the lambda
  • CLI defaults to INFO log level; use -v/--verbose for DEBUG or --debug for TRACE
  • Both logback (Ktor/framework logs) and KDown's Logger.console() respect the CLI flag
  • Remove unused --queue-demo subcommand

Test plan

  • kdown server --port 9000 --dir /tmp/downloads — only INFO+ logs from KDown
  • kdown -v server --port 9000 --dir /tmp/downloads — DEBUG+ logs visible
  • kdown --debug server --port 9000 --dir /tmp/downloads — all logs including VERBOSE
  • Logger.console() without arguments still logs everything (backward compat)
  • Logger.console(LogLevel.WARN) only emits WARN and ERROR

🤖 Generated with Claude Code

Add LogLevel enum (VERBOSE, DEBUG, INFO, WARN, ERROR) and minLevel
parameter to Logger.console() across all platforms. CLI defaults to
INFO, with -v/--verbose for DEBUG and --debug for TRACE/VERBOSE.
Also removes the unused --queue-demo subcommand.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@github-actions
Copy link
Contributor

Test Results

1 216 tests  ±0   1 216 ✅ ±0   12s ⏱️ -1s
   88 suites ±0       0 💤 ±0 
   88 files   ±0       0 ❌ ±0 

Results for commit 68eec68. ± Comparison against base commit 97b56df.

@linroid linroid merged commit 6a7e051 into main Feb 14, 2026
6 checks passed
@linroid linroid deleted the feat/cli-log-level branch February 14, 2026 09:26
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.

1 participant