public function log(GitEvent $event, $message, array $context = array(), $eventName = NULL)
{
// Provide backwards compatibility with Symfony 2.
if (empty($eventName) && method_exists($event, 'getName')) {
$eventName = $event->getName();
}
$method = $this->getLogLevelMapping($eventName);
if ($method !== false) {
$context += array('command' => $event->getProcess()->getCommandLine());
$this->logger->{$method}($message, $context);
}
}