Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI Powershell

SetPIAFLinkTracing.LogFile Property

  • Last UpdatedDec 15, 2025
  • 2 minute read
SetPIAFLinkTracing.LogFile Property

Log file to output the AF Link trace to. If not specified, messages will be written to the PI message log by default.

Namespace:  OSIsoft.PowerShell
Assembly:  OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 3.1.1.0 (3.1.1.466)

Syntax

[ParameterAttribute(Position = 1, ParameterSetName = "Enable tracing", 
	Mandatory = false, HelpMessage = "Trace to log file")]
[ValidateNotNullOrEmptyAttribute]
public string LogFile { get; set; }
<ParameterAttribute(Position := 1, ParameterSetName := "Enable tracing", 
	Mandatory := false, HelpMessage := "Trace to log file")>
<ValidateNotNullOrEmptyAttribute>
Public Property LogFile As String
	Get
	Set

Dim instance As SetPIAFLinkTracing
Dim value As String

value = instance.LogFile

instance.LogFile = value
public:
[ParameterAttribute(Position = 1, ParameterSetName = L"Enable tracing", 
	Mandatory = false, HelpMessage = L"Trace to log file")]
[ValidateNotNullOrEmptyAttribute]
property String^ LogFile {
	String^ get ();
	void set (String^ value);
}
[<ParameterAttribute(Position = 1, ParameterSetName = "Enable tracing", 
	Mandatory = false, HelpMessage = "Trace to log file")>]
[<ValidateNotNullOrEmptyAttribute>]
member LogFile : string with get, set

Property Value

Type: String

See Also

In This Topic
TitleResults for “How to create a CRG?”Also Available in