Summary
Writes an 'informational' log entry
Syntax
Write-LogInfo [-Message] <String> [[-Component] <String>] [[-File] <String>] [<CommonParameters>]
Description
This command writes an 'informational' log entry to default output or a specified file.
Parameters
Name | Argument | Description |
---|---|---|
Message | <String> | Specifies the message to write |
Component | <String> | Specifies a 'Component' tag for the message entry. Some log readers use this parameter to group messages. If not specified, the component tag is 'General'. This parameter is ignored in 'Simple' mode due to backwards compatibility reasons. |
File | <String> | Specifies the file to update with the new log entry. If not specified, the log entry is written to pipeline. |
Examples
PS C:\> Write-LogInfo -Component "Repository" -Message "Nothing bad happened" -File myfile.log