pub struct Logging {
pub level: LogLevel,
}Expand description
Logging interceptor using tracing.
Logs operation start/completion with configurable verbosity.
Requires the tracing feature.
§Example
ⓘ
use llm_stack::intercept::{InterceptorStack, Logging, LogLevel, ToolExec};
let stack = InterceptorStack::<ToolExec<()>>::new()
.with(Logging::new(LogLevel::Debug));Fields§
§level: LogLevelVerbosity level for log output.
Implementations§
Trait Implementations§
Source§impl<T> Interceptor<T> for Logging
Available on crate feature tracing only.
impl<T> Interceptor<T> for Logging
Available on crate feature
tracing only.Auto Trait Implementations§
impl Freeze for Logging
impl RefUnwindSafe for Logging
impl Send for Logging
impl Sync for Logging
impl Unpin for Logging
impl UnwindSafe for Logging
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