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); }
public static void WriteAudit(AuditEvent auditEvent, IDictionary <string, object> properties) { SnLog.WriteAudit(auditEvent, properties); }
public static void WriteException(Exception ex, IEnumerable <string> categories) { SnLog.WriteException(ex, categories: categories); }
public static void WriteException(Exception ex) { SnLog.WriteException(ex); }
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)); }
public static void WriteInformation <T>(object message, Func <T, IDictionary <string, object> > getPropertiesCallback, T callbackArg) { SnLog.WriteInformation(message, properties: getPropertiesCallback?.Invoke(callbackArg)); }