pub struct LogTail {
pub target: String,
pub format: LogFormat,
pub file: PathBuf,
}Expand description
A per-target output route: additionally write target’s logs to file. Configured via
the RUST_LOG_TAILS env var, e.g. graphql_request=/var/log/sui/graphql_request.jsonl.
Fields§
§target: String§format: LogFormat§file: PathBufTrait Implementations§
Auto Trait Implementations§
impl Freeze for LogTail
impl RefUnwindSafe for LogTail
impl Send for LogTail
impl Sync for LogTail
impl Unpin for LogTail
impl UnsafeUnpin for LogTail
impl UnwindSafe for LogTail
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request