pub struct LogConfig {
pub global_level: LevelFilter,
pub stdout_logs: Option<StdoutLogConfig>,
pub file_logs: Option<FileLogConfig>,
}Expand description
Global configuration for logging. Default is to only print logs to stdout in full format.
Fields§
§global_level: LevelFilterGlobal verbosity level for logging.
stdout_logs: Option<StdoutLogConfig>The configuration for stdout logging.
file_logs: Option<FileLogConfig>The configuration for file logging.
Implementations§
Source§impl LogConfig
impl LogConfig
Sourcepub fn init_tracing_subscriber(
&self,
env_filter: Option<EnvFilter>,
) -> Result<(), TryInitError>
pub fn init_tracing_subscriber( &self, env_filter: Option<EnvFilter>, ) -> Result<(), TryInitError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogConfig
impl RefUnwindSafe for LogConfig
impl Send for LogConfig
impl Sync for LogConfig
impl Unpin for LogConfig
impl UnwindSafe for LogConfig
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