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.1.1.2619)

Syntax

C#
public void SetLogFile(
	string LogFileName,
	string LogFileType
)
Visual Basic
Public Sub SetLogFile ( _
	LogFileName As String, _
	LogFileType As String _
)
Visual C++
public:
virtual void SetLogFile(
	String^ LogFileName, 
	String^ LogFileType
) sealed

Parameters

LogFileName
Type: System..::..String
Fully qualified trace file name or null string to use automatic file naming (recommended)
LogFileType
Type: System..::..String
String identifying the type of log e,g, Focuser, LX200, GEMINI, MoonLite, G11

Implements

ITraceLogger..::..SetLogFile(String, String)

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:

CopyVB.NET
TL = New TraceLogger()
TL.SetLogFile("","TraceName")

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

CopyVB.NET
TL = New TraceLogger("",TraceName")

See Also