1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-04 12:17:35 +02:00

Allow string also for level

This commit is contained in:
Mponos George
2020-06-22 21:39:58 +03:00
parent 4ef697d912
commit c6a56f0e33

View File

@@ -61,13 +61,13 @@ class OverflowHandler extends AbstractHandler implements FormattableHandlerInter
/** /**
* @param HandlerInterface $handler * @param HandlerInterface $handler
* @param int[] $thresholdMap Dictionary of logger level => threshold * @param int[] $thresholdMap Dictionary of logger level => threshold
* @param int $level * @param int|string $level The minimum logging level at which this handler will be triggered
* @param bool $bubble * @param bool $bubble
*/ */
public function __construct( public function __construct(
HandlerInterface $handler, HandlerInterface $handler,
array $thresholdMap = [], array $thresholdMap = [],
int $level = Logger::DEBUG, $level = Logger::DEBUG,
bool $bubble = true bool $bubble = true
) { ) {
$this->handler = $handler; $this->handler = $handler;