public static void Error(Exception ex, string message) { OnLogged(new LogItem { Priority = LogPriority.Error, PriorityLabel = "ERR", Message = message, Exception = ex }); }