Skip to main content

Introduction

Open the Logs tab under Monitoring in any environment to view and search your application’s logs. You may filter your logs by type:
  • Application logs: log entries written by your application, either manually or when the application encounters an unhandled exception.
  • Access logs: log entries that Laravel Cloud generates automatically when your application receives a request.
  • Scheduled command logs: the output, exit code, and start and finish times of each scheduled task run.
You may filter scheduled command logs to one command or to every scheduled command on an instance.

Log format

Your application doesn’t need a particular log format. Laravel Cloud reads anything your application writes to standard output or standard error, and it recognizes the output of each runtime’s common loggers. If you control your log format, write one JSON object per line with message, level, and time keys, which Laravel Cloud reads the same way in every runtime:

Log retention

Laravel Cloud prioritizes your most recent logs. It eventually deletes older logs once they exceed your plan’s retention period or storage quota allowance, whichever comes first. Log retention periods vary by plan. See the Plans feature table for details about log and metrics retention.

Forwarding logs

To forward an environment’s logs to an external destination, configure a log drain. See Log Drains for supported destinations, setup, and billing.