154 references to LoggingEventType
Microsoft.Build (118)
BackEnd\Components\Logging\LoggingService.cs (1)
986if (loggingPacket.EventType == LoggingEventType.CustomEvent
Instance\TaskFactories\TaskHostTask.cs (5)
526case LoggingEventType.BuildErrorEvent: 529case LoggingEventType.BuildWarningEvent: 532case LoggingEventType.TaskCommandLineEvent: 533case LoggingEventType.BuildMessageEvent: 536case LoggingEventType.CustomEvent:
LogMessagePacketBase.cs (112)
39/// An invalid eventId, used during initialization of a <see cref="LoggingEventType"/>. 271private static Dictionary<LoggingEventType, MethodInfo> s_readMethodCache = new Dictionary<LoggingEventType, MethodInfo>(); 276private static Dictionary<LoggingEventType, MethodInfo> s_writeMethodCache = new Dictionary<LoggingEventType, MethodInfo>(); 306private LoggingEventType _eventType = LoggingEventType.Invalid; 389internal LoggingEventType EventType 424if (_eventType != LoggingEventType.CustomEvent) 463if (_eventType == LoggingEventType.TargetFinishedEvent && _targetFinishedTranslator != null) 491if (LoggingEventType.CustomEvent != _eventType) 519if (_eventType == LoggingEventType.TargetFinishedEvent && _targetFinishedTranslator != null) 622LoggingEventType.BuildErrorEvent => new BuildErrorEventArgs(null, null, null, -1, -1, -1, -1, null, null, null), 623LoggingEventType.BuildFinishedEvent => new BuildFinishedEventArgs(null, null, false), 624LoggingEventType.BuildMessageEvent => new BuildMessageEventArgs(null, null, null, MessageImportance.Normal), 625LoggingEventType.BuildStartedEvent => new BuildStartedEventArgs(null, null), 626LoggingEventType.BuildWarningEvent => new BuildWarningEventArgs(null, null, null, -1, -1, -1, -1, null, null, null), 627LoggingEventType.ProjectFinishedEvent => new ProjectFinishedEventArgs(null, null, null, false), 628LoggingEventType.ProjectStartedEvent => new ProjectStartedEventArgs(null, null, null, null, null, null), 629LoggingEventType.TargetStartedEvent => new TargetStartedEventArgs(null, null, null, null, null), 630LoggingEventType.TargetFinishedEvent => new TargetFinishedEventArgs(null, null, null, null, null, false), 631LoggingEventType.TaskStartedEvent => new TaskStartedEventArgs(null, null, null, null, null), 632LoggingEventType.TaskFinishedEvent => new TaskFinishedEventArgs(null, null, null, null, null, false), 633LoggingEventType.TaskCommandLineEvent => new TaskCommandLineEventArgs(null, null, MessageImportance.Normal), 634LoggingEventType.ResponseFileUsedEvent => new ResponseFileUsedEventArgs(null), 637LoggingEventType.AssemblyLoadEvent => new AssemblyLoadBuildEventArgs(), 638LoggingEventType.TaskParameterEvent => new TaskParameterEventArgs(0, null, null, true, default), 639LoggingEventType.ProjectEvaluationStartedEvent => new ProjectEvaluationStartedEventArgs(), 640LoggingEventType.ProjectEvaluationFinishedEvent => new ProjectEvaluationFinishedEventArgs(), 641LoggingEventType.ProjectImportedEvent => new ProjectImportedEventArgs(), 642LoggingEventType.TargetSkipped => new TargetSkippedEventArgs(), 643LoggingEventType.Telemetry => new TelemetryEventArgs(), 644LoggingEventType.ExtendedCustomEvent => new ExtendedCustomBuildEventArgs(), 645LoggingEventType.ExtendedBuildErrorEvent => new ExtendedBuildErrorEventArgs(), 646LoggingEventType.ExtendedBuildWarningEvent => new ExtendedBuildWarningEventArgs(), 647LoggingEventType.ExtendedBuildMessageEvent => new ExtendedBuildMessageEventArgs(), 648LoggingEventType.ExtendedCriticalBuildMessageEvent => new ExtendedCriticalBuildMessageEventArgs(), 649LoggingEventType.ExternalProjectStartedEvent => new ExternalProjectStartedEventArgs(null, null, null, null, null), 650LoggingEventType.ExternalProjectFinishedEvent => new ExternalProjectFinishedEventArgs(null, null, null, null, false), 651LoggingEventType.CriticalBuildMessage => new CriticalBuildMessageEventArgs(null, null, null, -1, -1, -1, -1, null, null, null), 652LoggingEventType.MetaprojectGenerated => new MetaprojectGeneratedEventArgs(null, null, null), 653LoggingEventType.PropertyInitialValueSet => new PropertyInitialValueSetEventArgs(), 654LoggingEventType.PropertyReassignment => new PropertyReassignmentEventArgs(), 655LoggingEventType.UninitializedPropertyRead => new UninitializedPropertyReadEventArgs(), 656LoggingEventType.GeneratedFileUsedEvent => new GeneratedFileUsedEventArgs(), 657LoggingEventType.BuildCheckMessageEvent => new BuildCheckResultMessage(), 658LoggingEventType.BuildCheckWarningEvent => new BuildCheckResultWarning(), 659LoggingEventType.BuildCheckErrorEvent => new BuildCheckResultError(), 660LoggingEventType.BuildCheckAcquisitionEvent => new BuildCheckAcquisitionEventArgs(), 661LoggingEventType.BuildCheckTracingEvent => new BuildCheckTracingEventArgs(), 662LoggingEventType.EnvironmentVariableReadEvent => new EnvironmentVariableReadEventArgs(), 663LoggingEventType.BuildSubmissionStartedEvent => new BuildSubmissionStartedEventArgs(), 664LoggingEventType.BuildCanceledEvent => new BuildCanceledEventArgs("Build canceled."), 677private LoggingEventType GetLoggingEventId(BuildEventArgs eventArg) 682return LoggingEventType.BuildMessageEvent; 686return LoggingEventType.TaskCommandLineEvent; 691return LoggingEventType.TaskParameterEvent; 696return LoggingEventType.ProjectFinishedEvent; 700return LoggingEventType.ProjectStartedEvent; 704return LoggingEventType.ExternalProjectStartedEvent; 708return LoggingEventType.ExternalProjectFinishedEvent; 714return LoggingEventType.ProjectEvaluationFinishedEvent; 718return LoggingEventType.ProjectEvaluationStartedEvent; 722return LoggingEventType.ProjectImportedEvent; 726return LoggingEventType.TargetSkipped; 730return LoggingEventType.Telemetry; 734return LoggingEventType.AssemblyLoadEvent; 738return LoggingEventType.ExtendedCustomEvent; 742return LoggingEventType.ExtendedBuildErrorEvent; 746return LoggingEventType.ExtendedBuildWarningEvent; 750return LoggingEventType.ExtendedBuildMessageEvent; 754return LoggingEventType.CriticalBuildMessage; 758return LoggingEventType.ExtendedCriticalBuildMessageEvent; 762return LoggingEventType.MetaprojectGenerated; 766return LoggingEventType.PropertyInitialValueSet; 770return LoggingEventType.PropertyReassignment; 774return LoggingEventType.UninitializedPropertyRead; 778return LoggingEventType.GeneratedFileUsedEvent; 782return LoggingEventType.BuildCheckMessageEvent; 786return LoggingEventType.BuildCheckWarningEvent; 790return LoggingEventType.BuildCheckErrorEvent; 794return LoggingEventType.BuildCheckAcquisitionEvent; 798return LoggingEventType.BuildCheckTracingEvent; 802return LoggingEventType.EnvironmentVariableReadEvent; 806return LoggingEventType.BuildSubmissionStartedEvent; 810return LoggingEventType.BuildCanceledEvent; 815return LoggingEventType.TargetStartedEvent; 819return LoggingEventType.TargetFinishedEvent; 823return LoggingEventType.TaskStartedEvent; 827return LoggingEventType.TaskFinishedEvent; 831return LoggingEventType.BuildFinishedEvent; 835return LoggingEventType.BuildStartedEvent; 839return LoggingEventType.BuildWarningEvent; 843return LoggingEventType.BuildErrorEvent; 847return LoggingEventType.ResponseFileUsedEvent; 851return LoggingEventType.CustomEvent; 859private void WriteEventToStream(BuildEventArgs buildEvent, LoggingEventType eventType, ITranslator translator) 862if (eventType == LoggingEventType.ProjectEvaluationStartedEvent) 867else if (eventType == LoggingEventType.ProjectEvaluationFinishedEvent) 885case LoggingEventType.BuildMessageEvent: 888case LoggingEventType.ResponseFileUsedEvent: 891case LoggingEventType.TaskCommandLineEvent: 894case LoggingEventType.BuildErrorEvent: 897case LoggingEventType.BuildWarningEvent: 1210private BuildEventArgs ReadEventFromStream(LoggingEventType eventType, ITranslator translator) 1213if (eventType == LoggingEventType.ProjectEvaluationStartedEvent) 1217else if (eventType == LoggingEventType.ProjectEvaluationFinishedEvent) 1233LoggingEventType.TaskCommandLineEvent => ReadTaskCommandLineEventFromStream(translator, message, helpKeyword, senderName), 1234LoggingEventType.BuildErrorEvent => ReadTaskBuildErrorEventFromStream(translator, message, helpKeyword, senderName), 1235LoggingEventType.BuildMessageEvent => ReadBuildMessageEventFromStream(translator, message, helpKeyword, senderName), 1236LoggingEventType.ResponseFileUsedEvent => ReadResponseFileUsedEventFromStream(translator, message, helpKeyword, senderName), 1237LoggingEventType.BuildWarningEvent => ReadBuildWarningEventFromStream(translator, message, helpKeyword, senderName),
Microsoft.Build.Engine.UnitTests (36)
BackEnd\NodePackets_Tests.cs (36)
84VerifyLoggingPacket(buildFinished, LoggingEventType.BuildFinishedEvent); 85VerifyLoggingPacket(buildStarted, LoggingEventType.BuildStartedEvent); 86VerifyLoggingPacket(lowMessage, LoggingEventType.BuildMessageEvent); 87VerifyLoggingPacket(taskStarted, LoggingEventType.TaskStartedEvent); 88VerifyLoggingPacket(taskFinished, LoggingEventType.TaskFinishedEvent); 89VerifyLoggingPacket(commandLine, LoggingEventType.TaskCommandLineEvent); 90VerifyLoggingPacket(taskParameter, LoggingEventType.TaskParameterEvent); 91VerifyLoggingPacket(warning, LoggingEventType.BuildWarningEvent); 92VerifyLoggingPacket(error, LoggingEventType.BuildErrorEvent); 93VerifyLoggingPacket(targetStarted, LoggingEventType.TargetStartedEvent); 94VerifyLoggingPacket(targetFinished, LoggingEventType.TargetFinishedEvent); 95VerifyLoggingPacket(targetSkipped, LoggingEventType.TargetSkipped); 96VerifyLoggingPacket(projectStarted, LoggingEventType.ProjectStartedEvent); 97VerifyLoggingPacket(projectFinished, LoggingEventType.ProjectFinishedEvent); 98VerifyLoggingPacket(evaluationStarted, LoggingEventType.ProjectEvaluationStartedEvent); 99VerifyLoggingPacket(evaluationFinished, LoggingEventType.ProjectEvaluationFinishedEvent); 100VerifyLoggingPacket(externalStartedEvent, LoggingEventType.ExternalProjectStartedEvent); 101VerifyLoggingPacket(externalFinishedEvent, LoggingEventType.ExternalProjectFinishedEvent); 102VerifyLoggingPacket(assemblyLoad, LoggingEventType.AssemblyLoadEvent); 103VerifyLoggingPacket(extError, LoggingEventType.ExtendedBuildErrorEvent); 104VerifyLoggingPacket(extWarning, LoggingEventType.ExtendedBuildWarningEvent); 105VerifyLoggingPacket(extMessage, LoggingEventType.ExtendedBuildMessageEvent); 106VerifyLoggingPacket(extCustom, LoggingEventType.ExtendedCustomEvent); 107VerifyLoggingPacket(criticalMessage, LoggingEventType.CriticalBuildMessage); 108VerifyLoggingPacket(extCriticalMessage, LoggingEventType.ExtendedCriticalBuildMessageEvent); 109VerifyLoggingPacket(propInit, LoggingEventType.PropertyInitialValueSet); 110VerifyLoggingPacket(metaProjectGenerated, LoggingEventType.MetaprojectGenerated); 111VerifyLoggingPacket(propReassign, LoggingEventType.PropertyReassignment); 112VerifyLoggingPacket(responseFileUsed, LoggingEventType.ResponseFileUsedEvent); 113VerifyLoggingPacket(uninitializedPropertyRead, LoggingEventType.UninitializedPropertyRead); 114VerifyLoggingPacket(environmentVariableRead, LoggingEventType.EnvironmentVariableReadEvent); 115VerifyLoggingPacket(generatedFileUsed, LoggingEventType.GeneratedFileUsedEvent); 116VerifyLoggingPacket(buildSubmissionStarted, LoggingEventType.BuildSubmissionStartedEvent); 117VerifyLoggingPacket(buildCheckTracing, LoggingEventType.BuildCheckTracingEvent); 118VerifyLoggingPacket(buildCanceled, LoggingEventType.BuildCanceledEvent); 356private static void VerifyLoggingPacket(BuildEventArgs buildEvent, LoggingEventType logEventType)