Struct sylvia_iot_corelib::logger::Config
source · pub struct Config {
pub level: Option<String>,
pub style: Option<String>,
}
Expand description
Logger configuration object.
Fields§
§level: Option<String>
Log level. Can be off
, error
, warn
, info
, debug
.
Default is info
.
style: Option<String>
Log style. Can be json
, log4j
.
Default is json
.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more