pub struct LogEntry {
pub source: String,
pub timestamp: SystemTime,
pub hostname: String,
pub process: String,
pub message: String,
pub severity: Severity,
pub fields: Vec<(String, String)>,
}Expand description
로그 엔트리
파싱된 로그 레코드를 나타냅니다. 다양한 소스(syslog, 파일, journald)에서 수집된 로그를 통합 형식으로 저장합니다.
Fields§
§source: String원본 소스 (파일 경로, syslog 등)
timestamp: SystemTime타임스탬프
hostname: String호스트명
process: String프로세스명
message: String로그 메시지
severity: Severity심각도
fields: Vec<(String, String)>추가 필드 (key-value 쌍)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogEntry
impl<'de> Deserialize<'de> for LogEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LogEntry
impl RefUnwindSafe for LogEntry
impl Send for LogEntry
impl Sync for LogEntry
impl Unpin for LogEntry
impl UnwindSafe for LogEntry
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