//! Forwarding llama.cpp/ggml logs into the `tracing` ecosystem.
use llama_crab_sys as sys;
/// Options controlling the log forwarder.
/// Install a callback that forwards llama.cpp and ggml log messages to the
/// [`tracing`] macros (`trace!`, `debug!`, `info!`, `warn!`, `error!`).
///
/// This must be called after a [`crate::LlamaBackend`] has been initialized.
/// Calling it multiple times replaces the previous callback.
///
/// v0.1 stub: the callback is installed but currently drops messages. The
/// real implementation will route through a stateful C function exported by
/// the FFI crate.
unsafe extern "C"