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
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 Forget for JsonPipelineFormat
impl Freeze for JsonPipelineFormat
impl RefUnwindSafe for JsonPipelineFormat
impl Send for JsonPipelineFormat
impl Sync for JsonPipelineFormat
impl Unpin for JsonPipelineFormat
impl UnsafeUnpin for JsonPipelineFormat
impl UnwindSafe 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