-
Notifications
You must be signed in to change notification settings - Fork 50
Set‐LoggingCallerScope
external help file: Logging-help.xml Module Name: Logging online version: https://logging.readthedocs.io/en/latest/functions/Set-LoggingCallerScope.md schema: 2.0.0
Sets the scope from which to get the caller scope
Set-LoggingCallerScope [[-CallerScope] <Int32>] [<CommonParameters>]
This function sets the scope to obtain information from the caller
Set-LoggingCallerScope -CallerScope 2
Set-LoggingCallerScope
It sets the caller scope to 1
Integer representing the scope to use to find the caller information. Defaults to 1 which represent the scope of the function where Write-Log is being called from
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: $Defaults.CallerScope
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
https://logging.readthedocs.io/en/latest/functions/Set-LoggingCallerScope.md
https://logging.readthedocs.io/en/latest/functions/Write-Log.md
https://github.com/EsOsO/Logging/blob/master/Logging/public/Set-LoggingCallerScope.ps1