Write-Log

Last updated last month

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-2017 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions

Parameters

-Object <Object>

Specifies the object to write to the log.

Aliases

Required?

false

Position?

1

Default Value

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Separator <Object>

Strings the output together with the specified text.

Aliases

Required?

false

Position?

named

Default Value

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Log <LogNotificationLevel>

Specifies the Sitecore logging level.

Aliases

Required?

false

Position?

named

Default Value

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

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."

Related Topics