示例#1
0
 public static void WriteUnsuccessfulAudit(AuditEvent auditEvent, string operationMessage, IDictionary <string, object> properties)
 {
     SnLog.WriteAudit(new AuditEvent(auditEvent.AuditCategory, auditEvent.EventId,
                                     "UNSUCCESSFUL " + auditEvent.AuditCategory, operationMessage), properties);
 }
示例#2
0
 public static void WriteAudit(AuditEvent auditEvent, IDictionary <string, object> properties)
 {
     SnLog.WriteAudit(auditEvent, properties);
 }
示例#3
0
 public static void WriteException(Exception ex, IEnumerable <string> categories)
 {
     SnLog.WriteException(ex, categories: categories);
 }
示例#4
0
 public static void WriteException(Exception ex)
 {
     SnLog.WriteException(ex);
 }
示例#5
0
 public static void WriteWarning <T>(object message, IEnumerable <string> categories, Func <T, IDictionary <string, object> > getPropertiesCallback, T callbackArg)
 {
     SnLog.WriteWarning(message, categories: categories, properties: getPropertiesCallback?.Invoke(callbackArg));
 }
示例#6
0
 public static void WriteInformation <T>(object message, Func <T, IDictionary <string, object> > getPropertiesCallback, T callbackArg)
 {
     SnLog.WriteInformation(message, properties: getPropertiesCallback?.Invoke(callbackArg));
 }