The Coralogix PHP SDK will End of Life(EOL) Feb 1st 2024.
For PHP 7.4+, please use the Coralogix’s PHP OpenTelemetry Instrumentation Documentation instead.

Monolog integration

Coralogix PHP SDK provides logging handler for Monolog logging library.

Example of usage:


use Monolog\Logger;
use Coralogix\Handlers\CoralogixMonologHandler;

$logger = new Logger("coralogix_logger");
    new CoralogixMonologHandler(
$logger->info("Hello from Monolog logging library");

For more details about usage of Monolog, please, read the this manual.