Click or drag to resize
TraceLoggerSetLogFile Method
Sets the log filename and type if the constructor is called without parameters

Namespace: ASCOM.Utilities
Assembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: (
public void SetLogFile(
	string LogFileName,
	string LogFileType


Type: SystemString
Fully qualified trace file name or null string to use automatic file naming (recommended)
Type: SystemString
String identifying the type of log e,g, Focuser, LX200, GEMINI, MoonLite, G11
The LogFileType is used in the file name to allow you to quickly identify which of several logs contains the information of interest.

Note This command is only required if the tracelogger constructor is called with no parameters. It is provided for use in COM clients that can not call constructors with parameters. If you are writing a COM client then create the trace logger as:

TL = New TraceLogger()

If you are writing a .NET client then you can achieve the same end in one call:

TL = New TraceLogger("",TraceName")
See Also