pub struct LogCfg {
pub query: QueryLogMode,
pub redact_params: Vec<String>,
pub ship: LogShipCfg,
}Expand description
[log] — what the access log records.
Access logs are the most-copied artifact a service produces: scraped, shipped to a SIEM, retained
for months, readable by people who were never meant to hold what is in them. The request line is
where credentials end up (?api_key=, OAuth ?code=, magic links, presigned URLs), so how it is
rendered is a security setting, not a formatting one.
Fields§
§query: QueryLogMode"redact" (default), "drop", or "full" — see QueryLogMode.
redact_params: Vec<String>Extra query-parameter names to treat as sensitive, on top of the built-in list. Matched
case-insensitively as substrings, so "accountNumber" also covers account_number_v2.
ship: LogShipCfgShip the access log to a collector. Off by default. See LogShipCfg.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogCfg
impl<'de> Deserialize<'de> for LogCfg
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 LogCfg
impl RefUnwindSafe for LogCfg
impl Send for LogCfg
impl Sync for LogCfg
impl Unpin for LogCfg
impl UnsafeUnpin for LogCfg
impl UnwindSafe for LogCfg
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