예제 #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));
 }