DefaultTraceListener::LogFileName Property
.NET Framework (current version)
Gets or sets the name of a log file to write trace or debug messages to.
Assembly: System (in System.dll)
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.
.NET Framework
Available since 1.1
Available since 1.1
Show: