TraceLogger(String, String, String, Boolean) Constructor
Create a new TraceLogger instance with the given filename and path
Namespace: ASCOM.ToolsAssembly: ASCOM.Tools (in ASCOM.Tools.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
public TraceLogger(
string logFileName,
string logFilePath,
string logFileType,
bool enabled
)
Public Sub New (
logFileName As String,
logFilePath As String,
logFileType As String,
enabled As Boolean
)
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.
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".
Supported in: 2.0