internal static void LogEvent(TeamFoundationRequestContext requestContext, string message, LogEventInformationLevel informationLevel)
 {
     switch (informationLevel)
     {
         case LogEventInformationLevel.Information:
             TeamFoundationTrace.Info(message);
             break;
         case LogEventInformationLevel.Warning:
             TeamFoundationTrace.Warning(message);
             TeamFoundationApplicationCore.Log(requestContext, message, TeamFoundationEventId.WarehouseErrorsBaseEventId, System.Diagnostics.EventLogEntryType.Warning);
             break;
         case LogEventInformationLevel.Error:
             TeamFoundationTrace.Error(message);
             TeamFoundationApplicationCore.Log(requestContext, message, TeamFoundationEventId.WarehouseErrorsBaseEventId, System.Diagnostics.EventLogEntryType.Error);
             break;
     }
 }
Exemple #2
0
        internal static void LogEvent(TeamFoundationRequestContext requestContext, string message, LogEventInformationLevel informationLevel)
        {
            switch (informationLevel)
            {
            case LogEventInformationLevel.Information:
                TeamFoundationTrace.Info(message);
                break;

            case LogEventInformationLevel.Warning:
                TeamFoundationTrace.Warning(message);
                TeamFoundationApplicationCore.Log(requestContext, message, TeamFoundationEventId.WarehouseErrorsBaseEventId, System.Diagnostics.EventLogEntryType.Warning);
                break;

            case LogEventInformationLevel.Error:
                TeamFoundationTrace.Error(message);
                TeamFoundationApplicationCore.Log(requestContext, message, TeamFoundationEventId.WarehouseErrorsBaseEventId, System.Diagnostics.EventLogEntryType.Error);
                break;
            }
        }