pub struct ServiceLogV1 { /* private fields */ }Expand description
Definition of the service.1 format.
Implementations§
Source§impl ServiceLogV1
impl ServiceLogV1
Sourcepub fn level(&self) -> &LogLevel
pub fn level(&self) -> &LogLevel
The logger output level. One of {FATAL,ERROR,WARN,INFO,DEBUG,TRACE} based on log level coding guidelines
Sourcepub fn time(&self) -> DateTime<Utc>
pub fn time(&self) -> DateTime<Utc>
RFC3339Nano UTC datetime string when the log event was emitted
Sourcepub fn message(&self) -> &str
pub fn message(&self) -> &str
Log message. Palantir Java services using slf4j should not use slf4j placeholders ({}). Logs obtained from 3rd party libraries or services that use slf4j and contain slf4j placeholders will always produce unsafeParams with numeric indexes corresponding to the zero-indexed order of placeholders. Renderers should substitute numeric parameters from unsafeParams and may leave placeholders that do not match indexes as the original placeholder text.
Sourcepub fn safe(&self) -> Option<bool>
pub fn safe(&self) -> Option<bool>
Describes the safety of this log event based on prior knowledge within the application which produced the message. This field should not be set to true without total confidence that it is correct. * empty: Considered unsafe unless the logging pipeline has special configuration for this origin. Eventually these will all be equivalent to false. * true: All safe components can be trusted. * false: Event is unsafe and cannot be exported.
Sourcepub fn params(&self) -> &BTreeMap<String, Any>
pub fn params(&self) -> &BTreeMap<String, Any>
Known-safe parameters (redaction may be used to make params knowably safe, but is not required).
Sourcepub fn org_id(&self) -> Option<&OrganizationId>
pub fn org_id(&self) -> Option<&OrganizationId>
Organization id (if available)
Sourcepub fn stacktrace(&self) -> Option<&str>
pub fn stacktrace(&self) -> Option<&str>
Language-specific stack trace. Content is knowably safe. Renderers should substitute named placeholders ({name}, for name as a key) with keyed value from unsafeParams and leave non-matching keys as the original placeholder text.
Sourcepub fn unsafe_params(&self) -> &BTreeMap<String, Any>
pub fn unsafe_params(&self) -> &BTreeMap<String, Any>
Unredacted parameters
Additional dimensions that describe the instance of the log event
Trait Implementations§
Source§impl Clone for ServiceLogV1
impl Clone for ServiceLogV1
Source§fn clone(&self) -> ServiceLogV1
fn clone(&self) -> ServiceLogV1
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more