pub enum LogFormat {
Auto,
Json,
Pretty,
}Expand description
Selection policy for the stdout log formatter.
Variants§
Auto
Select JSON for deployed environments, and pretty output locally.
Json
Always emit newline-delimited JSON.
Pretty
Always emit human-readable pretty output.
Implementations§
Source§impl LogFormat
impl LogFormat
Sourcepub const fn resolve(self, environment: DeploymentEnvironment) -> Self
pub const fn resolve(self, environment: DeploymentEnvironment) -> Self
Resolves LogFormat::Auto for a deployment environment.
Trait Implementations§
impl Copy for LogFormat
Source§impl<'de> Deserialize<'de> for LogFormat
impl<'de> Deserialize<'de> for LogFormat
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
impl Eq for LogFormat
impl StructuralPartialEq for LogFormat
Auto Trait Implementations§
impl Freeze for LogFormat
impl RefUnwindSafe for LogFormat
impl Send for LogFormat
impl Sync for LogFormat
impl Unpin for LogFormat
impl UnsafeUnpin for LogFormat
impl UnwindSafe for LogFormat
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