Process logging in import scripts
The Persons import script and Departments import script use native PowerShell logging.
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"
Where the logs appear
When testing your script, you can view log messages in the Logs section of the preview area.
After you Manually generate a snapshot, the process log messages appear when you View snapshot logs.
After Source imports, you can either View import logs or View snapshot logs.
Note
During Manual imports, up to 100,000 logs are kept, at all log levels. During imports performed as a part of Schedules, only 100 log entries are kept, and only those which are at the Write-Warning and Write-Error levels.
Process logs are retained for 30 days.