Skip to main content

rustbridge_logging/
lib.rs

1//! rustbridge-logging - Tracing to FFI callback bridge
2//!
3//! This crate provides:
4//! - [`FfiLoggingLayer`] tracing layer that forwards logs to FFI callbacks
5//! - [`LogCallback`] type for the FFI log callback function
6//! - Dynamic log level filtering
7
8mod callback;
9mod layer;
10mod reload;
11
12pub use callback::{LogCallback, LogCallbackManager};
13pub use layer::{FfiLoggingLayer, init_logging};
14pub use reload::ReloadHandle;
15pub use rustbridge_core::LogLevel;
16
17/// Prelude module for convenient imports
18pub mod prelude {
19    pub use crate::{FfiLoggingLayer, LogCallback, LogCallbackManager, LogLevel, init_logging};
20}