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: 6.0.0.0 (6.3.0.2839)
Syntax
public void SetLogFile(
	string LogFileName,
	string LogFileType
)

Parameters

LogFileName
Type: SystemString
Fully qualified trace file name or null string to use automatic file naming (recommended)
LogFileType
Type: SystemString
String identifying the type of log e,g, Focuser, LX200, GEMINI, MoonLite, G11
Remarks
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()
TL.SetLogFile("","TraceName")

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

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