Skip to content

Add CLI verbositiy logging - #108

Open
dario-br wants to merge 11 commits into
mandiant:mainfrom
dario-br:logging
Open

Add CLI verbositiy logging#108
dario-br wants to merge 11 commits into
mandiant:mainfrom
dario-br:logging

Conversation

@dario-br

Copy link
Copy Markdown
  1. Add CLI verbosity level and log to file parameters: -v OR --verbosity-level, --log-file.

  2. Logging is sent by default to Terminal, but can also be sent to a JSONL file. JSONL file is overwritten with each execution of the CLI.

@google-cla

google-cla Bot commented Mar 30, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

dario-br and others added 3 commits May 19, 2026 11:03
- Remove direct `log` and `tracing-log` dependencies; tracing-subscriber
  handles the log->tracing bridge automatically via its default
  `tracing-log` feature.

- Remove manual `LogTracer::init()` call which conflicted with
  tracing-subscriber's built-in log compatibility layer, causing
  "logger already initialized" errors at runtime.

- Replace 3 leftover `log::error!` macro calls with `tracing::error!`
  using structured field syntax for consistency.

- Propagate `try_init()` error instead of silently discarding it.

- Fix stale doc comment referencing `log::LevelFilter`.
…e end of main's scope, flushing any buffered log events regardless of which exit path was taken.
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