protected function log($e, $includeLocation = true) {
            $msg = '[' . $e->getCode() . '] ' . $e->getMessage();

            if ($this->config->logExceptionLocation && $includeLocation) {
                $msg .= ' (occurred in ' . $e->getFile() . ' @ line ' . $e->getLine() . ')';
            }

            $this->logger->error($msg);
        }