public function logException($exception)
{
$this->logger()->error(sprintf("Exception '%s' with message '%s' in %s:%d", get_class($exception), $exception->getMessage(), $exception->getFile(), $exception->getLine()), array('exception' => $exception));
}