{"id":57546,"library":"tracing-log","title":"Tracing Log","description":"Provides compatibility between tracing and the log crate, allowing log records to be captured by tracing subscribers.","status":"active","version":"0.2.0","language":"rust","source_language":null,"source_url":"https://github.com/tokio-rs/tracing","tags":["tracing","logging","compatibility","telemetry"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ntracing-log = \"0.2.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add tracing-log","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"LogTracer","correct":"use tracing_log::LogTracer;"}],"quickstart":{"code":"use tracing_log::LogTracer;\n\nfn main() {\n    LogTracer::init().unwrap();\n    log::info!(\"This log is captured by tracing\");\n}","lang":"rust","description":"Initializes a LogTracer to forward log records to tracing."},"warnings":[{"fix":"Call LogTracer::init() early in main.","message":"Must be initialized before any log macros are used.","severity":"gotcha","affected_versions":">=0.2.0"}],"env_vars":null,"search_vec":"'allow':11 'captur':16 'compat':4,22 'crate':10 'log':2,9,12,21 'provid':3 'record':13 'subscrib':19 'telemetri':23 'trace':1,6,18,20","created_at":"2026-06-16T15:46:49.677091+00:00","updated_at":"2026-06-16T15:46:49.677091+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://tokio.rs","github":"https://github.com/tokio-rs/tracing","docs":"https://docs.rs/tracing-log/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["observability","logging"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}