You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is happening intermittently in a script that runs as a scheduled task. Sometimes the task starts up and logs fine. Sometimes it throws this error. (PSVersion 5.1.14393.2430, Logging version 4.2.11)
Add-LoggingTarget : Cannot validate argument on parameter 'Name'. The argument "WinEventLog" does not belong to the
set "Email,ElasticSearch,Console,Slack,File,Seq" specified by the ValidateSet attribute. Supply an argument that is in
the set and then try the command again.
I'd guess AV or over-provisioned hosting or something else is causing Start-LoggingManager to take longer than 500ms to do its work
Start-LoggingManager
# Let the runspace spinup and generate all the available targets
Start-Sleep -Milliseconds 500
What would it take to change this from a fixed interval to a loop that checks status every 100ms and either returns when ready or times out with an error?
The text was updated successfully, but these errors were encountered:
This is happening intermittently in a script that runs as a scheduled task. Sometimes the task starts up and logs fine. Sometimes it throws this error. (PSVersion 5.1.14393.2430, Logging version 4.2.11)
Code that errors
Error message
I'd guess AV or over-provisioned hosting or something else is causing
Start-LoggingManager
to take longer than 500ms to do its workFrom Logging.psm1
What would it take to change this from a fixed interval to a loop that checks status every 100ms and either returns when ready or times out with an error?
The text was updated successfully, but these errors were encountered: