akkudoktoreos.server.eos.fastapi_logging_get_log
- async akkudoktoreos.server.eos.fastapi_logging_get_log(limit: int = Query(100), level: str | None = Query(None), contains: str | None = Query(None), regex: str | None = Query(None), from_time: str | None = Query(None), to_time: str | None = Query(None), tail: bool = Query(False)) JSONResponse
Get structured log entries from the EOS log file.
Filters and returns log entries based on the specified query parameters. The log file is expected to contain newline-delimited JSON entries.
- Parameters:
limit (int) – Maximum number of entries to return.
level (Optional[str]) – Filter logs by severity level (e.g., DEBUG, INFO).
contains (Optional[str]) – Return only logs that include this string in the message.
regex (Optional[str]) – Return logs that match this regular expression in the message.
from_time (Optional[str]) – ISO 8601 timestamp to filter logs not older than this.
to_time (Optional[str]) – ISO 8601 timestamp to filter logs not newer than this.
tail (bool) – If True, fetch the most recent log entries (like tail).
- Returns:
A JSON list of log entries.
- Return type:
JSONResponse