コード例 #1
0
 public void SendError(Exception exception)
 {
     AuditDBContext.AddSystemLogEntry(this, System.Guid.NewGuid(), LoggedInUser == null ? (long?)null : LoggedInUser.Id, LogEventType.Error,
                                      exception.Message,
                                      exception.StackTrace,
                                      exception.InnerException != null ? exception.InnerException.Message : string.Empty,
                                      exception.InnerException != null ? exception.InnerException.StackTrace : string.Empty
                                      );
     SyslogSender.SendError(this, exception);
 }
コード例 #2
0
 public void SendWarning(string warningMessage)
 {
     AuditDBContext.AddSystemLogEntry(this, System.Guid.NewGuid(), LoggedInUser == null ? (long?)null : LoggedInUser.Id, LogEventType.Warning, warningMessage);
     SyslogSender.SendWarning(this, warningMessage);
 }
コード例 #3
0
 public void SendInformation(string message)
 {
     AuditDBContext.AddSystemLogEntry(this, System.Guid.NewGuid(), LoggedInUser == null ? (long?)null : LoggedInUser.Id, LogEventType.Information, message);
     SyslogSender.SendInformation(this, message);
 }