LogCellRenderer
API reference › Debug Core › Panel › Log › LogCellRenderer
Renders the typed cells of the logs grid for the Log debug panel.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
buildRowOptions() static | Builds the GridView rowOptions array for the row: anchor id (log-{N}) and severity-driven CSS class. | LogCellRenderer |
renderCategoryCell() static | Renders the category as the shared Fqcn::renderLabel() two-tone label. | LogCellRenderer |
renderLevelCell() static | Renders the level name as a vocabulary-tinted chip (error, warning, info, trace, profile). | LogCellRenderer |
renderMessageCell() static | Renders the message cell, followed by the optional context disclosure and the optional trace list. | LogCellRenderer |
renderTimeCell() static | Renders the capture time as H:i:s.mmm, derived from the row’s millisecond timestamp. | LogCellRenderer |
renderTimeSincePreviousCell() static | Renders the time-since-previous cell with the prev/next anchor navigation buttons. | LogCellRenderer |
Method details
Section titled “Method details”buildRowOptions()
Section titled “buildRowOptions() ”public static function buildRowOptions(PHPForge\Debug\Panel\Log\LogRow $row): array<string, mixed>Builds the GridView rowOptions array for the row: anchor id (log-{N}) and severity-driven CSS class.
Parameters
| Parameter | Type | Description |
|---|---|---|
$row | LogRow |
Returns
array<string, mixed>: Attribute map with id and (optionally) class keys.
renderCategoryCell()
Section titled “renderCategoryCell() ”public static function renderCategoryCell(PHPForge\Debug\Panel\Log\LogRow $row): stringRenders the category as the shared Fqcn::renderLabel() two-tone label.
renderLevelCell()
Section titled “renderLevelCell() ”public static function renderLevelCell(PHPForge\Debug\Panel\Log\LogRow $row): stringRenders the level name as a vocabulary-tinted chip (error, warning, info, trace, profile).
renderMessageCell()
Section titled “renderMessageCell() ”public static function renderMessageCell(PHPForge\Debug\Panel\Log\LogRow $row, Closure(array<string, mixed>): string $traceLine): stringRenders the message cell, followed by the optional context disclosure and the optional trace list.
SQL renders highlighted, a print_r() or var_export() dump as a DumpTreeRenderer tree, and any other
message as escaped text; the message is escaped once.
renderTimeCell()
Section titled “renderTimeCell() ”public static function renderTimeCell(PHPForge\Debug\Panel\Log\LogRow $row): stringRenders the capture time as H:i:s.mmm, derived from the row’s millisecond timestamp.
renderTimeSincePreviousCell()
Section titled “renderTimeSincePreviousCell() ”public static function renderTimeSincePreviousCell(PHPForge\Debug\Panel\Log\LogRow $row): stringRenders the time-since-previous cell with the prev/next anchor navigation buttons.