pub struct LogsConfig {
pub format: LogFormat,
pub level: String,
pub span_fields: bool,
}Expand description
How the process writes to its own stdout.
This one applies whether or not enabled is set: a server writes logs
before it has been told to be observable.
Fields§
§format: LogFormatpretty (the default) for a terminal, json for anything that will
parse the line — a log shipper, kubectl logs | jq, CloudWatch.
level: StringThe RUST_LOG filter to use when the environment does not set one.
RUST_LOG always wins, because it is what someone reaches for while
debugging a running container.
span_fields: boolInclude the current span’s fields — request id, method, route — on every line written inside it. This is what makes a JSON log searchable by request without a trace backend.
Trait Implementations§
Source§impl Clone for LogsConfig
impl Clone for LogsConfig
Source§fn clone(&self) -> LogsConfig
fn clone(&self) -> LogsConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LogsConfig
impl Debug for LogsConfig
Source§impl Default for LogsConfig
impl Default for LogsConfig
Source§impl<'de> Deserialize<'de> for LogsConfigwhere
LogsConfig: Default,
impl<'de> Deserialize<'de> for LogsConfigwhere
LogsConfig: Default,
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
Auto Trait Implementations§
impl Freeze for LogsConfig
impl RefUnwindSafe for LogsConfig
impl Send for LogsConfig
impl Sync for LogsConfig
impl Unpin for LogsConfig
impl UnsafeUnpin for LogsConfig
impl UnwindSafe for LogsConfig
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