public static function logException (LoggerInterface $logger, Exception $exception)
  {
    $logger->error (sprintf ("%s, at %s(%s)", $exception->getMessage (),
      ErrorConsole::shortFileName ($exception->getFile ()), $exception->getLine ()));
  }
public static function logException (LoggerInterface $logger, Exception $exception)
  {
    $logger->error (sprintf ("%s, at %s(%s)", $exception->getMessage (),
      ErrorConsole::shortFileName ($exception->getFile ()), $exception->getLine ()));
  }
public static function logException ( LoggerInterface $ logger , Exception $ exception ) { $ logger -> error ( sprintf ( "%s, at %s(%s)" , $ exception -> getMessage ( ) , ErrorConsole :: shortFileName ( $ exception -> getFile ( ) ) , $ exception -> getLine ( ) ) ) ; }
Shortcut to log a formatted exception on the provided logger.

@param LoggerInterface $logger
@param Exception       $exception
Shortcut to log a formatted exception on the provided logger .