Skip to content

Logging

Joseph Szobody edited this page Mar 28, 2016 · 2 revisions

Get all SDK activity logged simply by providing a PSR-3 logger class.

Specifying logger in the main description

The circuit logger config should use the logger key in the master description array.

Example:

// Master description array
[
    ...
    'logger' => \Path\To\LoggerClass::class
]

Use with Laravel

The logger class will be resolved using the Laravel container, which means you can easily point to the pre-built Laravel logger instance by specifying the PSR-3 LoggerInterface:

'logger' => \Psr\Log\LoggerInterface::class