Trait flexi_logger::trc::LogSpecSubscriber
source · [−]pub trait LogSpecSubscriber: 'static + Send {
fn set_new_spec(
&mut self,
new_spec: LogSpecification
) -> Result<(), FlexiLoggerError>;
fn initial_spec(&self) -> Result<LogSpecification, FlexiLoggerError>;
}
This is supported on crate feature
trc
only.Expand description
Trait that allows to register for changes to the log specification.
Required methods
fn set_new_spec(
&mut self,
new_spec: LogSpecification
) -> Result<(), FlexiLoggerError>
fn set_new_spec(
&mut self,
new_spec: LogSpecification
) -> Result<(), FlexiLoggerError>
Apply a new LogSpecification
.
Errors
fn initial_spec(&self) -> Result<LogSpecification, FlexiLoggerError>
fn initial_spec(&self) -> Result<LogSpecification, FlexiLoggerError>
Provide the current log spec.