You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PhpExtendedMonolog/src/ExtendedMonolog/ExceptionLoggerInterface.php

21 lines
601 B
PHP

<?php
namespace jrosset\ExtendedMonolog;
use Monolog\Level;
use Psr\Log\LoggerInterface;
use Throwable;
/**
* Describe a logger interface with method for managing exception directly
*/
interface ExceptionLoggerInterface extends LoggerInterface {
/**
* Adds a log record about an exception
*
* @param Level|int $level The logging level (a Monolog or RFC 5424 level)
* @param Throwable $exception The exception
* @param array $context The log context
*/
public function exception (Level|int $level, Throwable $exception, array $context = []): void;
}