Log Collector
Captures PSR-3 log messages recorded during a request or console command — level, message, context, and source location.

What It Captures
| Field | Description |
|---|---|
time | Timestamp when the log entry was recorded |
level | PSR-3 log level (debug, info, warning, error, etc.) |
message | Log message (string or stringable) |
context | Contextual data array passed with the log call |
line | Source file and line where the log call originated |
Data Schema
[
{
"time": 1711878000.123,
"level": "info",
"message": "User logged in",
"context": {"userId": 42},
"line": "/app/src/AuthService.php:87"
}
]Summary (shown in debug entry list):
{
"logger": {
"total": 5
}
}Contract
use AppDevPanel\Kernel\Collector\LogCollector;
$collector->collect(
level: 'info',
message: 'User logged in',
context: ['userId' => 42],
line: '/app/src/AuthService.php:87',
);INFO
LogCollectorAppDevPanel\Kernel\Collector\LogCollectorCollects Log data during application lifecycle. implements SummaryCollectorInterfaceAppDevPanel\Kernel\Collector\SummaryCollectorInterfaceSummary data collector responsibility is to collect summary data for a collector. Summary is used to display a list of previous requests and select one to display full info. Its data set is specific to the list and is reduced compared to full data collected in {@see CollectorInterface}. and depends on TimelineCollectorAppDevPanel\Kernel\Collector\TimelineCollectorCollects Timeline data during application lifecycle. for cross-collector timeline integration.
How It Works
The collector is fed by LoggerInterfaceProxyAppDevPanel\Kernel\Collector\LoggerInterfaceProxyDecorator proxy for Logger Interface. Intercepts calls and forwards data to collectors. — a PSR-3 LoggerInterfacePsr\Log\LoggerInterfacePSR-3 Logger Interface. Describes a logger instance. decorator. When the proxy is registered as the application's logger, every $logger->info(...), $logger->error(...), etc. call is automatically intercepted and forwarded to the collector.
No manual wiring is needed if you use an adapter (Symfony, Laravel, Yii) — the proxy is registered automatically.
Debug Panel
- Filterable log list — search by message text or log level
- Color-coded levels — each PSR-3 level has a distinct color badge
- Expandable entries — click to view full context data and source location
- Entry count — total log entries shown in sidebar badge