public static void LogMessage(string source, string message, string category, TraceProvider.TraceSeverity severity) { // log error to ULS log TraceProvider.WriteTrace(0, severity, Guid.NewGuid(), Assembly.GetExecutingAssembly().FullName, source, category, message); }
public static void LogError(string source, string errorMessage, string errorCategory) { // log error to ULS log TraceProvider.WriteTrace(0, TraceProvider.TraceSeverity.CriticalEvent, Guid.NewGuid(), Assembly.GetExecutingAssembly().FullName, source, errorCategory, errorMessage); }