Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }