Struct dioxus_logger::DioxusLogger
source · pub struct DioxusLogger { /* private fields */ }Expand description
The primary logging struct that contains all runtime configuration.
Implementations§
source§impl DioxusLogger
impl DioxusLogger
sourcepub fn new(level_filter: LevelFilter) -> Self
pub fn new(level_filter: LevelFilter) -> Self
Create a new DioxusLogger struct to configure and build.
sourcepub fn use_format(self, format: &'static str) -> Self
pub fn use_format(self, format: &'static str) -> Self
Allows you to define a custom format.
The available options are {LEVEL}, {PATH}, {ARGS} and {TIMESTAMP}
Providing the format of [{LEVEL}] {PATH} - {ARGS}] will return something like [INFO] dioxus_testing - this is my log message
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for DioxusLogger
impl Send for DioxusLogger
impl Sync for DioxusLogger
impl Unpin for DioxusLogger
impl UnwindSafe for DioxusLogger
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