pub struct RlgWasm { /* private fields */ }Expand description
Logger handle. Construct once per “channel” (logical service or component) and emit records through the level shortcuts.
Implementations§
Source§impl RlgWasm
impl RlgWasm
Sourcepub fn new(component: &str, format: &str) -> Self
pub fn new(component: &str, format: &str) -> Self
Construct a new logger.
format is the string name of a LogFormat variant
("JSON", "MCP", "OTLP", "Logfmt", etc.). Defaults to
"JSON" if the input is unknown.
Trait Implementations§
Auto Trait Implementations§
impl Forget for RlgWasm
impl Freeze for RlgWasm
impl RefUnwindSafe for RlgWasm
impl Send for RlgWasm
impl Sync for RlgWasm
impl Unpin for RlgWasm
impl UnsafeUnpin for RlgWasm
impl UnwindSafe for RlgWasm
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