Retrieve errors that happened when trying to log messages.
Retrieve errors that happened when trying to log messages. This command is used to troubleshoot issues with the logging system itself.
It can only return errors that happened during the current process. Only logging instances that are currently enabled are considered, does not work for Legacy Logging Providers.
Returns all errors any currently enabled logging providers had.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.