Office365-Scoutnet-synk

Synkronisering av användarkonton och e-postlistor från Scoutnet till Office 365


Project maintained by Scouterna Hosted on GitHub Pages — Theme by mattgraham

Write-SNSLog

Write-SNSLog writes a message to a specified log file with the current time stamp.

Description

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.

Syntax

Write-SNSLog [-Message] <string> [[-Level] <string>] [<CommonParameters>]

Parameters

-Message

Type: String; required.

Message is the content that you wish to add to the log file.

-Level

Type: String; optional.

Specify the criticality of the log information being written to the log (i.e. Error, Warning, Informational)