[][src]Struct ckb_jsonrpc_types::MainLoggerConfig

pub struct MainLoggerConfig {
    pub filter: Option<String>,
    pub to_stdout: Option<bool>,
    pub to_file: Option<bool>,
    pub color: Option<bool>,
}

Runtime logger config.

Fields

filter: Option<String>

Sets log levels for different modules.

Optional, null means keeping the current option unchanged.

Examples

Set the log level to info for all modules

info

Set the log level to debug for listed modules and info for other modules.

info,ckb-rpc=debug,ckb-sync=debug,ckb-relay=debug,ckb-tx-pool=debug,ckb-network=debug
to_stdout: Option<bool>

Whether printing the logs to the process stdout.

Optional, null means keeping the current option unchanged.

to_file: Option<bool>

Whether appending the logs to the log file.

Optional, null means keeping the current option unchanged.

color: Option<bool>

Whether using color when printing the logs to the process stdout.

Optional, null means keeping the current option unchanged.

Trait Implementations

impl Clone for MainLoggerConfig[src]

impl Debug for MainLoggerConfig[src]

impl Default for MainLoggerConfig[src]

impl<'de> Deserialize<'de> for MainLoggerConfig[src]

impl Serialize for MainLoggerConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.