src/System.Management.Automation/utils/tracing/PSEtwLogProvider.cs
/// <summary>
/// Provider interface function for logging health event
/// </summary>
/// <param name="logContext"></param>
/// <param name="eventId"></param>
/// <param name="exception"></param>
/// <param name="additionalInfo"></param>
/// 
Provider interface function for logging health event
Provider interface function for logging health event
internal override void LogEngineHealthEvent(LogContext logContext, int eventId, Exception exception, Dictionary<String, String> additionalInfo)
        {
            StringBuilder payload = new StringBuilder();
            AppendException(payload, exception);
            payload.AppendLine();
            AppendAdditionalInfo(payload, additionalInfo);
            WriteEvent(PSEventId.Engine_Health, PSChannel.Operational, PSOpcode.Exception, PSTask.ExecutePipeline, logContext, payload.ToString());
        }
internal override void LogEngineHealthEvent ( LogContext logContext , int eventId , Exception exception , Dictionary < String , String > additionalInfo ) { StringBuilder payload = new StringBuilder ( ) ; AppendException ( payload , exception ) ; payload . AppendLine ( ) ; AppendAdditionalInfo ( payload , additionalInfo ) ; WriteEvent ( PSEventId . Engine_Health , PSChannel . Operational , PSOpcode . Exception , PSTask . ExecutePipeline , logContext , payload . ToString ( ) ) ; }
Provider interface function for logging health event
Provider interface function for logging health event
logContext
LogContext
None
eventId
int
None
exception
Exception
None
additionalInfo
Dictionary<String, String>
None