# Logging

> Learn how to configure logging and tracing in SlateDB

## Tracing in SlateDB

SlateDB uses the [`tracing`](https://github.com/tokio-rs/tracing) library for logging and diagnostics. This provides structured, contextual logging that helps debug and monitor your database operations.

Here's a basic example showing how to consume tracing logs with `tracing_subscriber` and SlateDB:

<!-- could not inline /home/runner/work/slatedb/examples/src/tracing_subscriber.rs -->
