LightningWeb.API.LogLinesController (Lightning v2.15.0-pre5)
View SourceAPI controller for managing log lines.
Query Parameters
page- Page number (default: 1)page_size- Number of items per page (default: 10)timestamp_after- Filter logs after this ISO8601 datetimetimestamp_before- Filter logs before this ISO8601 datetimeproject_id- Filter by project UUIDworkflow_id- Filter by workflow UUIDjob_id- Filter by job UUIDwork_order_id- Filter by work order UUIDrun_id- Filter by run UUIDlevel- Filter by log level (success, always, info, warn, error, debug)
Examples
GET /api/log_lines?page=1&page_size=50
GET /api/log_lines?timestamp_after=2024-01-01T00:00:00Z
GET /api/log_lines?run_id=uuid&level=error
GET /api/log_lines?project_id=uuid×tamp_after=2024-01-01T00:00:00Z
Summary
Functions
Lists log lines with pagination and filtering.
Functions
@spec index(Plug.Conn.t(), map()) :: Plug.Conn.t()
Lists log lines with pagination and filtering.
Returns a paginated list of log lines filtered by the query parameters. Validates datetime parameters before applying filters and enforces authorization based on the current resource (user or API token).
Parameters
conn- The Plug connection struct with the current resource assignedparams- Map of query parameters for filtering and pagination
Returns
- Renders JSON with paginated log lines on success
- Returns error via fallback controller if datetime validation fails