pub struct TypesLoggerConfig {
pub add_timestamp: Option<bool>,
pub disable_json: Option<bool>,
pub fields_order: Vec<String>,
pub flush_each_line: Option<bool>,
pub no_color: Option<bool>,
pub no_metadata: Option<bool>,
pub rotation: Option<TypesLogRotationConfig>,
pub timestamp_format: Option<String>,
}Expand description
TypesLoggerConfig
JSON schema
{
"type": "object",
"properties": {
"addTimestamp": {
"description": "AddTimestamp adds timestamp to log",
"type": "boolean"
},
"disableJSON": {
"description": "DisableJSON disables log JSON formatting",
"type": "boolean"
},
"fieldsOrder": {
"description": "FieldsOrder is the order in which fields are logged",
"type": "array",
"items": {
"type": "string"
}
},
"flushEachLine": {
"description": "FlushEachLine flushes the logger on each line",
"type": "boolean"
},
"noColor": {
"description": "NoColor disables coloring",
"type": "boolean"
},
"noMetadata": {
"description": "NoMetadata disables log metadata (process, replica)",
"type": "boolean"
},
"rotation": {
"description": "Rotation is the configuration for logging rotation",
"allOf": [
{
"$ref": "#/components/schemas/types.LogRotationConfig"
}
]
},
"timestampFormat": {
"description": "TimestampFormat is the format of the timestamp",
"type": "string"
}
}
}Fields§
§add_timestamp: Option<bool>AddTimestamp adds timestamp to log
disable_json: Option<bool>DisableJSON disables log JSON formatting
fields_order: Vec<String>FieldsOrder is the order in which fields are logged
flush_each_line: Option<bool>FlushEachLine flushes the logger on each line
no_color: Option<bool>NoColor disables coloring
no_metadata: Option<bool>NoMetadata disables log metadata (process, replica)
rotation: Option<TypesLogRotationConfig>Rotation is the configuration for logging rotation
timestamp_format: Option<String>TimestampFormat is the format of the timestamp
Trait Implementations§
source§impl Clone for TypesLoggerConfig
impl Clone for TypesLoggerConfig
source§fn clone(&self) -> TypesLoggerConfig
fn clone(&self) -> TypesLoggerConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for TypesLoggerConfig
impl Debug for TypesLoggerConfig
source§impl<'de> Deserialize<'de> for TypesLoggerConfig
impl<'de> Deserialize<'de> for TypesLoggerConfig
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
source§impl From<&TypesLoggerConfig> for TypesLoggerConfig
impl From<&TypesLoggerConfig> for TypesLoggerConfig
source§fn from(value: &TypesLoggerConfig) -> Self
fn from(value: &TypesLoggerConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TypesLoggerConfig
impl RefUnwindSafe for TypesLoggerConfig
impl Send for TypesLoggerConfig
impl Sync for TypesLoggerConfig
impl Unpin for TypesLoggerConfig
impl UnwindSafe for TypesLoggerConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)