pub struct JsonPipelineFormat { /* private fields */ }Expand description
Shared JSON formatter that injects pipeline/service name and structured fields.
Implementations§
Source§impl JsonPipelineFormat
impl JsonPipelineFormat
pub fn new(identity: LogIdentity) -> Self
Sourcepub fn with_redaction(self, redactor: impl LineRedactor) -> Self
pub fn with_redaction(self, redactor: impl LineRedactor) -> Self
Redact the structured fields before JSON adds another escaping layer.
Trait Implementations§
Source§impl<S, N> FormatEvent<S, N> for JsonPipelineFormat
impl<S, N> FormatEvent<S, N> for JsonPipelineFormat
Source§fn format_event(
&self,
ctx: &FmtContext<'_, S, N>,
writer: Writer<'_>,
event: &Event<'_>,
) -> Result
fn format_event( &self, ctx: &FmtContext<'_, S, N>, writer: Writer<'_>, event: &Event<'_>, ) -> Result
Auto Trait Implementations§
impl !RefUnwindSafe for JsonPipelineFormat
impl !UnwindSafe for JsonPipelineFormat
impl Forget for JsonPipelineFormat
impl Freeze for JsonPipelineFormat
impl Move for JsonPipelineFormat
impl Send for JsonPipelineFormat
impl Sync for JsonPipelineFormat
impl Unpin for JsonPipelineFormat
impl UnsafeUnpin for JsonPipelineFormat
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