Logging
Cinder can collect and display your application's log messages so you can see what happened around an error or over the life of a request.
Setting up the logging channel
Add a cinder channel to config/logging.php:
'channels' => [
// other channels...
'cinder' => [
'driver' => 'cinder',
'level' => env('LOG_LEVEL', 'debug'),
],
],
Then include it in your log stack:
CINDER_LOGS_ENABLED=true
LOG_STACK=single,cinder
Now log calls are shipped to Cinder:
Log::info('User signed in', ['user_id' => 42]);
Log::warning('Slow query detected');
Context arrays are attached to that log entry. Logs are sent to POST /api/v1/logs using OpenTelemetry-compatible resource log payloads.
Setting a minimal log level
Control volume with the channel level key (shown above) or your usual Monolog level configuration. Only entries at or above that level are forwarded.
Searching logs
The search box on the Logs page matches log messages. Add key:value to match a value in an entry's context or attributes, for example user_id:42 checkout or plan:"pro annual". Use dots for nested context (user.email:[email protected]), or click a value under Filter logs by on an expanded entry to add it to the search.
Pick a preset time range, or Custom range for exact start and end times. Presets go back as far as your plan keeps data.
Logs and notifications
Log entries do not trigger Cinder error notifications. Use report() for events that should become issues — see Error tracking.
Disabling log collection
CINDER_LOGS_ENABLED=false
Remove cinder from LOG_STACK as well if you registered the channel.