Example #1
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;
     }
 }
Example #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;
            }
        }