pub struct Logger { /* private fields */ }Expand description
A named logger: the pyuvm self.logger. The path is not typed by
hand — crate::log users get one from RustdvCtx, which carries the
path the phase walk derived (D7), so it cannot go stale when a
component moves.
Implementations§
Source§impl Logger
impl Logger
Sourcepub fn new(path: &str) -> Logger
pub fn new(path: &str) -> Logger
Build a logger from a dotted path. Retained for the framework’s own
use and for the free-function logging path; component contexts derive
their loggers with Logger::at instead.
Sourcepub fn at(path: RustdvPath) -> Logger
pub fn at(path: RustdvPath) -> Logger
Build a logger at a path the walk derived.
pub fn path(&self) -> &str
Sourcepub fn rustdv_path(&self) -> &RustdvPath
pub fn rustdv_path(&self) -> &RustdvPath
This logger’s path as segments — what the walk and the connection registry address components by.
pub fn log(&self, level: Level, msg: &str)
pub fn debug(&self, msg: &str)
pub fn info(&self, msg: &str)
pub fn warning(&self, msg: &str)
pub fn error(&self, msg: &str)
pub fn critical(&self, msg: &str)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Logger
impl RefUnwindSafe for Logger
impl Send for Logger
impl Sync for Logger
impl Unpin for Logger
impl UnsafeUnpin for Logger
impl UnwindSafe for Logger
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