public __construct ( string $name, Kraken\Log\Handler\HandlerInterface[] $loggers = [], callable[] $processors = [] ) | ||
$name | string | |
$loggers | Kraken\Log\Handler\HandlerInterface[] | |
$processors | callable[] |
public function __construct($name, $loggers = [], $processors = [])
{
try {
$this->logger = $this->createWrapper($name, $loggers, $processors);
} catch (Error $ex) {
throw new InstantiationException("Logger could not be constructed.", $ex);
} catch (Exception $ex) {
throw new InstantiationException("Logger could not be constructed.", $ex);
}
}