Skip to content
Acorn

Roots is an independent open source org, supported only by developers like you. We’ve been improving the WordPress developer experience since 2011, and your support keeps it independent.

Laravel Logging in WordPress

View as Markdown:

We recommend referencing the Laravel docs on Logging

The location of your application logs depends on your directory structure.

For zero-config setups, logs live at [wp-content]/cache/acorn/logs/.

For traditional setups, logs live at storage/logs/.

Basic PHP logging example

use Illuminate\Support\Facades\Log;

Log::debug('👋 Howdy');

Basic Blade logging example

{{ logger('👋 Howdy') }}

Last updated