Skip to main content

HelloID

Process logs

Process logging can be used to test and debug PowerShell scripts directly in the script editor, and to show information, warnings, and errors to administrators and end-users.

For more detailed information about process logging in Service Automation, see:

For more detailed information about process logging in Provisioning, see:

Note

There are no settings for process logging.

Process logs are retained for 30 days.

Alternatively, custom messages can be written to the Audit logs; see Manually writing messages into audit logs.

Logging cmdlets

In Provisioning scripts and in most Service Automation Tasks and actions and actions, process logging is done through native PowerShell cmdlets.

  • Write-Information "Information"

  • Write-Host "Equivalent to Write-Information"

  • Write-Error "An error"

  • Write-Warning "A warning"

  • Write-Verbose -Verbose "Verbose requires the -Verbose flag"

  • Write-Debug -Debug "Debug requires the -Debug flag"

Only in Scheduled tasks (Service Automation), proprietary cmdlets must be used; see Logging in PowerShell scheduled tasks.