pub struct ReloadHandle(/* private fields */);
Expand description
Handle that implements functions to change the log level on the fly.
Implementations§
Source§impl ReloadHandle
impl ReloadHandle
Sourcepub fn modify_log_level(&self, logging_value: &str) -> Result<(), Error>
pub fn modify_log_level(&self, logging_value: &str) -> Result<(), Error>
Modify the log level to the provided CSV value
Example input: libp2p=DEBUG,tokio=INFO,all,sn_client=ERROR
Custom keywords will take less precedence if the same target has been manually specified in the CSV.
sn_client=ERROR
in the above example will be used instead of the TRACE level set by “all” keyword.
Auto Trait Implementations§
impl Freeze for ReloadHandle
impl RefUnwindSafe for ReloadHandle
impl Send for ReloadHandle
impl Sync for ReloadHandle
impl Unpin for ReloadHandle
impl UnwindSafe for ReloadHandle
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