Announcement Amezmo announces Free Tier for all developers. Get free account

Persistent Logging For Laravel PHP Apps

Amezmo is a platform as a service dedicated to PHP app hosting. Start your free trial today and get your app deployed fast.

By default, Amezmo will create a dedicated directory for your application’s logging purposes. We recommend using this dedicated directory so you can persist your logs across deployments. The full path is /webroot/logs

For this tutorial, we’ll be using a Laravel based web application. To follow along, open up the app/config/logging.php file. For each log channel, change the default path from storage_path('logs/laravel.log'), to /webroot/logs/laravel.log Your configuration file should look like similar to this:

return [
    'default' => 'stack',
    'channels' => [

        'daily' => [
            'driver' => 'daily',
            'permission' => 0664,
            'path' => '/webroot/logs/laravel.log',
            'level' => 'debug',
            'days' => 14,


With the above configuration, your log files will persist across deployments and you don’t have to worry about creating a symbolic link.

Viewing your logs

From the Amezmo dashboard, you can view and download your log files in real time. By default, a truncated version is displayed, but you may download the full contents of the file.

Premium PHP Hosting for Developers.

Host PHP apps in Amezmo and deploy using the tools you love like GitHub, GitLab, or BitBucket.

Deploy Today for free

Get More Done With Amezmo

Stop wasting time setting up boilerplate infrastructure. Amezmo makes it easy to deploy, scale and host your modern PHP application.