Struct ckb_app_config::LogConfig [−][src]
pub struct LogConfig {
pub filter: Option<String>,
pub color: bool,
pub file: PathBuf,
pub log_dir: PathBuf,
pub log_to_file: bool,
pub log_to_stdout: bool,
pub emit_sentry_breadcrumbs: Option<bool>,
pub extra: HashMap<String, ExtraLoggerConfig, RandomState>,
}Expand description
The whole CKB logger configuration.
This struct is used to build Logger.
Include configurations of the main logger and any number of extra loggers.
Fields
filter: Option<String>An optional string which is used to build env_logger::Filter for the main logger.
If the value is None, no env_logger::Filter will be used.
color: boolColorize the output which was written into the stdout.
file: PathBufThe log file of the main loggger.
log_dir: PathBufThe directory where to store all log files.
log_to_file: boolOutput the log records of the main logger into a file or not.
log_to_stdout: boolOutput the log records of the main logger into the stdout or not.
An optional bool to control whether or not emit Sentry Breadcrumbs.
if the value is None, not emit Sentry Breadcrumbs.
extra: HashMap<String, ExtraLoggerConfig, RandomState>Add extra loggers.
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Config, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Config, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Config
impl UnwindSafe for Config
Blanket Implementations
Mutably borrows from an owned value. Read more