/**
  * 
  * @param int|string $level Handled level
  */
 public function __construct($level = 0, FormatterInterface $formatter = null)
 {
     parent::__construct($level);
     if ($formatter) {
         $this->setFormatter($formatter);
     }
 }
Example #2
0
 /**
  * 
  * @param LoggerInterface $logger
  * @param int $level
  */
 public function __construct(LoggerInterface $logger, $level = 0)
 {
     parent::__construct($level);
     $this->logger = $logger;
 }