pub struct Config { /* private fields */ }
Expand description
Specify what to be logged
Implementations§
Source§impl Config
impl Config
Sourcepub fn module_prefix(self, module_prefix: &str) -> Self
pub fn module_prefix(self, module_prefix: &str) -> Self
Configure the target
of the logger. If specified, the logger
only output for log
s in module that its path starts with
module_prefix
. wasm-logger only supports single prefix. Only
the last call to module_prefix
has effect if you call it multiple times.
Sourcepub fn message_on_new_line(self) -> Self
pub fn message_on_new_line(self) -> Self
Put the message on a new line, separated from other information such as level, file path, line number.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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