Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DefaultTraceListener::LogFileName Property

 

Gets or sets the name of a log file to write trace or debug messages to.

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

public:
property String^ LogFileName {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

The name of a log file to write trace or debug messages to.

The following code example creates a new DefaultTraceListener, adds it to the Trace::Listeners collection, and sets the LogFileName property to the log file specified in the command-line arguments.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: