pub struct FileLogReader;Expand description
Reads structured log entries from JSONL files on disk.
All methods are static — FileLogReader carries no state and exists
only as a namespace for related functions.
Implementations§
Source§impl FileLogReader
impl FileLogReader
Sourcepub fn read_legacy(
stdout_path: &Path,
stderr_path: &Path,
query: &LogQuery,
) -> Result<Vec<LogEntry>, Error>
pub fn read_legacy( stdout_path: &Path, stderr_path: &Path, query: &LogQuery, ) -> Result<Vec<LogEntry>, Error>
Read legacy separate stdout.log / stderr.log files.
Old-format logs are plain text with no timestamps or structured
metadata. Each line becomes a LogEntry with:
timestampset toDateTime::UNIX_EPOCH(epoch zero)streamset toLogStream::StdoutorLogStream::Stderrsourceset toLogSource::Daemonserviceanddeploymentset toNone
Entries from both files are interleaved (all stdout first, then all
stderr) and then filtered with apply_query.
§Errors
Returns an I/O error if either file cannot be opened or read.
Auto Trait Implementations§
impl Freeze for FileLogReader
impl RefUnwindSafe for FileLogReader
impl Send for FileLogReader
impl Sync for FileLogReader
impl Unpin for FileLogReader
impl UnsafeUnpin for FileLogReader
impl UnwindSafe for FileLogReader
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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