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