public static ErrorLogEntry LogError(this ILog log, Exception exc, OperationContext context = null) { var ee = new ErrorLogEntry(context, exc); log.AddEntry(ee); return(ee); }
public static ErrorLogEntry LogRemoteError(this ILog log, string message, string details, string appName = null, string userName = null, DateTime?remoteTime = null, Guid?id = null) { var entry = new ErrorLogEntry(null, message, details, ErrorKind.Remote, appName, userName, remoteTime); if (id != null) { entry.Id = id.Value; } log.AddEntry(entry); return(entry); }
protected void LogException(EntitySession session, Exception ex) { var entry = new ErrorLogEntry(session.Context, ex); session.AddLogEntry(entry); }