Skip to content
Sean Fisher edited this page Jan 14, 2021 · 24 revisions

Welcome! Logger is a Monolog based plugin to provide easy-to-use ways to log from WordPress. The AI_Logger\AI_Logger class implements PSR-3 compliant Psr\Log\LoggerInterface interface and acts as a proxy to Monolog underneath.

Quick Example

ai_logger()->error( 'Example error log.', [ 'user_id' => 1234 ] );
Screen Shot 2020-05-14 at 4 13 47 PM

Feel free to read more about how to use it by clicking the links in the sidebar.

Clone this wiki locally