Cmd/Ctrl + K

Logging

Annabel binds Psr\Log\LoggerInterface in the container.

Write logs

Write structured messages at a level that reflects their operational severity.

You can also resolve the configured logger binding:

Channels

Configure channels in config/logging.php. The logging package ships with file and null channels.

The skeleton writes to storage/logs/annabel.log by default.

Production

Make sure storage/logs is writable by the PHP process. In containerized deployments, forward or collect file logs according to your platform.

Unhandled HTTP exceptions are reported through the configured PSR logger before the error response is rendered.