|
|
@ -2,6 +2,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
namespace jrosset\ExtendedMonolog;
|
|
|
|
namespace jrosset\ExtendedMonolog;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use Monolog\Level;
|
|
|
|
use Psr\Log\LoggerInterface;
|
|
|
|
use Psr\Log\LoggerInterface;
|
|
|
|
use Throwable;
|
|
|
|
use Throwable;
|
|
|
|
|
|
|
|
|
|
|
@ -12,9 +13,9 @@ interface ExceptionLoggerInterface extends LoggerInterface {
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Adds a log record about an exception
|
|
|
|
* Adds a log record about an exception
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param int $level The logging level (a Monolog or RFC 5424 level)
|
|
|
|
* @param Level|int $level The logging level (a Monolog or RFC 5424 level)
|
|
|
|
* @param Throwable $exception The exception
|
|
|
|
* @param Throwable $exception The exception
|
|
|
|
* @param array $context The log context
|
|
|
|
* @param array $context The log context
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function exception (int $level, Throwable $exception, array $context = []): void;
|
|
|
|
public function exception (Level|int $level, Throwable $exception, array $context = []): void;
|
|
|
|
}
|
|
|
|
}
|