public function DrupalHandler::__construct in Monolog 8
Same name and namespace in other branches
- 2.x src/Logger/Handler/DrupalHandler.php \Drupal\monolog\Logger\Handler\DrupalHandler::__construct()
Parameters
\Psr\Log\LoggerInterface $wrapped: The wrapped Drupal logger.
bool|int $level: The minimum logging level at which this handler will be triggered.
bool $bubble: Whether the messages that are handled can bubble up the stack or not.
File
- src/
Logger/ Handler/ DrupalHandler.php, line 36
Class
- DrupalHandler
- Forwards logs to a Drupal logger.
Namespace
Drupal\monolog\Logger\HandlerCode
public function __construct(LoggerInterface $wrapped, $level = Logger::DEBUG, $bubble = TRUE) {
parent::__construct($level, $bubble);
$this->logger = $wrapped;
}