pub struct LogBuilder { /* private fields */ }Expand description
Log builder that automatically emits on drop.
Implementations§
Source§impl LogBuilder
impl LogBuilder
pub fn new(tag: LogTag, message: impl Display) -> Self
pub fn with_appid(self, appid: impl Into<String>) -> Self
pub fn with_path(self, path: impl Into<String>) -> Self
pub fn with_level(self, level: LogLevel) -> Self
pub fn with_target(self, target: impl Into<String>) -> Self
Trait Implementations§
Source§impl Drop for LogBuilder
impl Drop for LogBuilder
Auto Trait Implementations§
impl Freeze for LogBuilder
impl RefUnwindSafe for LogBuilder
impl Send for LogBuilder
impl Sync for LogBuilder
impl Unpin for LogBuilder
impl UnsafeUnpin for LogBuilder
impl UnwindSafe for LogBuilder
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