Synkronisering av användarkonton och e-postlistor från Scoutnet till Office 365
Write-SNSLog writes a message to a specified log file with the current time stamp.
The Write-SNSLog function is designed to add logging capability to other scripts. In addition to writing errors, warnings and verbose messages, the function writes to a log file for later debugging. The log file path is taken from the LogFilePath setting in the configuration. If it is empty, no log file is written.
Write-SNSLog [-Message] <string> [[-Level] <string>] [<CommonParameters>]
Type: String; required.
Message is the content that you wish to add to the log file.
Type: String; optional.
Specify the criticality of the log information being written to the log (i.e. Error, Warning, Informational)