Struct grafana_plugin_sdk::backend::HCLogJson [−][src]
pub struct HCLogJson { /* fields omitted */ }Expand description
A tracing event formatter which writes events in a format compatible with hclog.
This should be used as the FormatEvent in a FmtSubscriber by plugins
so that the parent Grafana process can interpret events correctly, with extra fields
included.
This struct should not need to be instantiated directly; instead, users should use the
backend::layer function to create a preconfigured
Layer which can then be installed, perhaps alongside other
layers.
Trait Implementations
impl<S, N> FormatEvent<S, N> for HCLogJson where
S: Subscriber + for<'lookup> LookupSpan<'lookup>,
N: for<'writer> FormatFields<'writer> + 'static,
impl<S, N> FormatEvent<S, N> for HCLogJson where
S: Subscriber + for<'lookup> LookupSpan<'lookup>,
N: for<'writer> FormatFields<'writer> + 'static,
fn format_event(
&self,
ctx: &FmtContext<'_, S, N>,
writer: Writer<'_>,
event: &Event<'_>
) -> Result where
S: Subscriber + for<'a> LookupSpan<'a>,
fn format_event(
&self,
ctx: &FmtContext<'_, S, N>,
writer: Writer<'_>,
event: &Event<'_>
) -> Result where
S: Subscriber + for<'a> LookupSpan<'a>,
Write a log message for Event in Context to the given Writer.
Auto Trait Implementations
impl RefUnwindSafe for HCLogJson
impl UnwindSafe for HCLogJson
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
