Struct carboncopy::Entry [−][src]
Represents a single log entry.
Implementations
impl<T: Clone + Serialize> Entry<T>
[src]
impl<T: Clone + Serialize> Entry<T>
[src]pub fn new(
message: T,
timestamp: bool,
span_id: Option<Vec<u8>>,
tags: Option<Tags>
) -> Self
[src]
message: T,
timestamp: bool,
span_id: Option<Vec<u8>>,
tags: Option<Tags>
) -> Self
Creates a new log entry.
If timestamp is true, entry is timestamped at Utc::now()
. Otherwise, entry is not
timestamped. Use this option to avoid double timestamping (e.g when using Docker).
When processing the log using a third party log processor, span_id
may be used to group
entries related to the same event together, while tags
may be used to add labels for
categorization.
pub fn json(self, level: Level) -> String
[src]
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Entry<T> where
T: RefUnwindSafe,
impl<T> RefUnwindSafe for Entry<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Entry<T> where
T: UnwindSafe,
impl<T> UnwindSafe for Entry<T> where
T: UnwindSafe,