pub struct LogDirectives { /* private fields */ }Expand description
Parsed RUST_LOG-style directives for per-target log filtering.
Supports: "info", "info,agent_sdk=debug,a2a_protocol_core=trace".
Unknown tokens are silently ignored.
Implementations§
Source§impl LogDirectives
impl LogDirectives
pub fn from_level(level: LogLevel) -> Self
Sourcepub fn parse(s: &str) -> Self
pub fn parse(s: &str) -> Self
Parse a RUST_LOG-style directive string.
Examples: "info", "info,agent_sdk=debug", "warn,a2a_protocol_core=trace,llm_client=debug".
pub fn global_level(&self) -> LogLevel
pub fn max_level(&self) -> LogLevel
Trait Implementations§
Source§impl Clone for LogDirectives
impl Clone for LogDirectives
Source§fn clone(&self) -> LogDirectives
fn clone(&self) -> LogDirectives
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LogDirectives
impl RefUnwindSafe for LogDirectives
impl Send for LogDirectives
impl Sync for LogDirectives
impl Unpin for LogDirectives
impl UnsafeUnpin for LogDirectives
impl UnwindSafe for LogDirectives
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more