Resque\Logger\Handler\ConsoleHandler::__construct PHP Method

__construct() public method

public __construct ( Symfony\Component\Console\Output\OutputInterface $output, integer $level = Logger::DEBUG, boolean $bubble = true )
$output Symfony\Component\Console\Output\OutputInterface The output interface
$level integer The minimum logging level at which this handler will be triggered
$bubble boolean Whether the messages that are handled can bubble up the stack or not
    public function __construct(OutputInterface $output, $level = Logger::DEBUG, $bubble = true)
    {
        parent::__construct($level, $bubble);
        $this->output = $output;
        foreach ($this->styleMap as $name => $styles) {
            $style = new \ReflectionClass('Symfony\\Component\\Console\\Formatter\\OutputFormatterStyle');
            $this->output->getFormatter()->setStyle($name, $style->newInstanceArgs($styles));
            if ($this->output instanceof ConsoleOutputInterface) {
                $this->output->getErrorOutput()->getFormatter()->setStyle($name, $style->newInstanceArgs($styles));
            }
        }
    }