forge_sdk/logging.rs
1//! Tracing target constants for forge-sdk.
2//!
3//! Same shape as `forge_agent::logging::targets` - keep target strings
4//! consistent across crates so the subscriber's env-filter picks up
5//! SDK-side logs under coherent prefixes.
6
7pub mod targets {
8 /// The reader-task that decodes stream-json frames coming back
9 /// from the `claude` subprocess.
10 pub const SDK_READER: &str = "sdk.reader";
11 /// Bridge lifecycle events. Same target string the agent crate
12 /// uses, so the subscriber's `bridge.lifecycle=debug` directive
13 /// picks up SDK-side dispatch traces too.
14 pub const BRIDGE_LIFECYCLE: &str = "bridge.lifecycle";
15}