Write-Log

Writes text to the Sitecore event log.

Syntax

Write-Log [[-Object] <Object>] [-Separator <Object>] [-Log <Debug | Info | Warning | Error | Fatal | None>]

Detailed Description

The Write-Log command writes text to the Sitecore event log with the specified logging level.

© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions

Parameters

-Object <Object>

Specifies the object to write to the log.

-Separator <Object>

Strings the output together with the specified text.

-Log <LogNotificationLevel>

Specifies the Sitecore logging level.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • System.String

    Represents the identity of a role.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • None.

Notes

Help Author: Adam Najmanowicz, Michael West

Examples

EXAMPLE

PS master:\> Write-Log "Information."

Last updated