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: 3c9121baba46811fe6e53a58a05935662261416d
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 trace logger 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