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: bool

Colorize the output which was written into the stdout.

file: PathBuf

The log file of the main loggger.

log_dir: PathBuf

The directory where to store all log files.

log_to_file: bool

Output the log records of the main logger into a file or not.

log_to_stdout: bool

Output the log records of the main logger into the stdout or not.

emit_sentry_breadcrumbs: Option<bool>

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

TODO(doc): @quake

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.