Events
Events are the core unit of observability in Nightwatch. They represent activity that has occurred inside your Laravel application — each one tied to a specific point in time and environment.
Requests
All incoming HTTP requests handled by Laravel are captured, including metadata such as route name, response status, duration, and middleware used.
Queries
Database queries executed through Laravel’s query builder or Eloquent ORM are recorded, including their SQL statement, bindings, connection, execution time, and context within the request or job lifecycle.
Outgoing Requests
Any outgoing HTTP requests made via Laravel’s Http
facade or the underlying Guzzle client are tracked — including URL, method, response time, and any errors.
Jobs
Jobs are captured with details including job name, execution time, connection, queue name, and status (e.g. completed, failed, or retried).
Scheduled Tasks
Tasks registered in Laravel’s scheduler (routes/console.php
) are tracked when executed. You can see run times, success/failure, and view logs or exceptions generated during execution.
Commands
Artisan commands are logged whenever they run, capturing the command name, parameters, runtime, and exit code — useful for debugging CI/CD scripts or automated tasks.
Cache
Nightwatch captures interactions with Laravel’s cache layer — including hit
, miss
, delete
, write
and fail
events. You’ll see which cache keys are being used and how frequently.
Logs
Structured logs written to Laravel’s logging system are ingested in real-time, allowing you to search and correlate them alongside requests, jobs, and other event types.
Notifications
Any notifications sent via Laravel’s notification system (email, SMS, Slack, etc.) are tracked with recipient details, channel used, and timestamp.
Outbound emails sent via Laravel’s mail system are logged, including subject, recipient, and delivery status. This makes it easier to trace email issues without needing to check your mail provider dashboard.
Exceptions
All exceptions are captured automatically. Nightwatch shows the exception type, message, stack trace, request context, and related events to help you debug without switching tools.
Server Stats (Coming soon)
Server resource measurements (CPU, memory) are captured as individual snapshots, providing precise monitoring points to track system performance over time.
Disk Usage (Coming soon)
Disk metrics are recorded as separate events for each storage volume in your Laravel application, allowing you to track space usage and growth patterns across all disks.