Open-Source Wikis

/

uv

/

Crates

/

uv-logging

astral-sh/uv

uv-logging

crates/uv-logging/ configures the tracing subscriber, log levels, and --verbose behaviors.

Purpose

uv emits a lot of structured events via tracing. The CLI exposes --verbose and --quiet, env vars RUST_LOG, UV_LOG_FILE, etc. This crate centralizes the wiring so the binary can call one initialization function.

Key abstractions

  • setup_logging — initialize tracing with the right filter, formatter, and writer.
  • Helpers for human-friendly vs. JSON formats.
  • Optional tracing-durations-export integration (gated behind a feature) for "where did the time go?" telemetry.

See also

Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.

uv-logging – uv wiki | Factory