pub struct FormatWithPrefix { /* private fields */ }Expand description
Text formatter that prepends the pipeline name to each event.
Implementations§
Source§impl FormatWithPrefix
impl FormatWithPrefix
pub fn new(pipeline_name: ColoredString) -> Self
Trait Implementations§
Source§impl<S, N> FormatEvent<S, N> for FormatWithPrefix
impl<S, N> FormatEvent<S, N> for FormatWithPrefix
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 FormatWithPrefix
impl Freeze for FormatWithPrefix
impl Move for FormatWithPrefix
impl RefUnwindSafe for FormatWithPrefix
impl Send for FormatWithPrefix
impl Sync for FormatWithPrefix
impl Unpin for FormatWithPrefix
impl UnsafeUnpin for FormatWithPrefix
impl UnwindSafe for FormatWithPrefix
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