public void Error(Exception exception, string message, params object[] objs) { try { log.Error(string.Format(message, objs), exception); } catch { log.WarnFormat("Could not render string with arguments: {0}", message); log.Error(message, exception); } }
public void Error(Exception exception, string message, params object[] objs) { _logger.Error(SafeFormat(message, objs), exception); }
public void Error(string message, params object[] objs) { _logger.Error(SafeFormat(message, objs)); }