TraceLoggerSetLogFile Method

Sets the log filename and type if the constructor is called without parameters

Definition

Namespace: ASCOM.Utilities
Assembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 7.1.3+4851.c5da65c2b
C#
public void SetLogFile(
	string LogFileName,
	string LogFileType
)

Parameters

LogFileName  String
Fully qualified trace file name or null string to use automatic file naming (recommended)
LogFileType  String
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 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() 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