You are here

public function DrupalHandler::__construct in Monolog 2.x

Same name and namespace in other branches
  1. 8 src/Logger/Handler/DrupalHandler.php \Drupal\monolog\Logger\Handler\DrupalHandler::__construct()

Constructs a Default object.

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 38

Class

DrupalHandler
Forwards logs to a Drupal logger.

Namespace

Drupal\monolog\Logger\Handler

Code

public function __construct(LoggerInterface $wrapped, $level = Logger::DEBUG, $bubble = TRUE) {
  parent::__construct($level, $bubble);
  $this->logger = $wrapped;
}