TraceLogger(String, String, String, Boolean) Constructor

Create a new TraceLogger instance with the given filename and path

Definition

Namespace: ASCOM.Tools
Assembly: ASCOM.Tools (in ASCOM.Tools.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public TraceLogger(
	string logFileName,
	string logFilePath,
	string logFileType,
	bool enabled
)

Parameters

logFileName  String
Name of the log file (without path) or null / empty string to use automatic file naming.
logFilePath  String
Fully qualified path to the log file directory or null / empty string to use an automatically generated path.
logFileType  String
A short name to identify the contents of the log (only used in automatic file names).
enabled  Boolean
Initial state of the trace logger - Enabled or Disabled.

Remarks

Automatically generated directory names will be of the form: "Documents\ASCOM\Logs {CurrentDate:yyyymmdd}" on Windows and "HOME/ASCOM/Logs{CurrentDate:yyyymmdd}" on Linux Automatically generated file names will be of the form: "ASCOM.{LogFileType}.{CurrentTime:HHmm.ssfff}{1 or 2 Digits, usually 0}.txt".

Version Information

.NET Standard

Supported in: 2.0

See Also