protected function getHandler($file, $level)
    {
        if (empty(self::$handler)) {
            $handler = new StreamHandler($file, $level);
            $handler->setFormatter($this->getCustomFormatter());
            self::$handler = $handler;
        }

        return self::$handler;
    }