open_net/api/log/log_info.rs
1use super::LogLevel;
2use super::LogType;
3
4/// Structured log record delivered to logging listeners.
5#[derive(Debug, Clone)]
6pub struct LogInfo {
7 /// Structured origin used to route records; never inferred from the tag.
8 pub log_type: LogType,
9 /// Source file, line and column. Synthetic overflow records use an empty location.
10 pub location: String,
11 /// Log severity.
12 pub level: LogLevel,
13 /// Operation label, kept exactly as supplied (for example, `start_session`).
14 /// No origin, SDK prefix or severity suffix is added.
15 pub tag: String,
16 /// Log payload, often JSON formatted by the exported log macros.
17 pub content: String,
18 /// Creation timestamp in Unix milliseconds.
19 pub create_time: i64,
20}