Creates a log file for a driver or application. Uses a similar file name and internal format to the serial logger. Multiple logs can be created simultaneously if needed.

Namespace: ASCOM.Utilities
Assembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 6.0.0.0 (6.1.1.2619)

Syntax

C#
public class TraceLogger : ITraceLogger, 
	ITraceLoggerExtra, IDisposable
Visual Basic
Public Class TraceLogger _
	Implements ITraceLogger, ITraceLoggerExtra, IDisposable
Visual C++
public ref class TraceLogger : ITraceLogger, 
	ITraceLoggerExtra, IDisposable

Remarks

In automatic mode the file will be stored in an ASCOM folder within XP's My Documents folder or equivalent places in other operating systems. Within the ASCOM folder will be a folder named Logs yyyy-mm-dd where yyyy, mm and dd are today's year, month and day numbers. The trace file will appear within the day folder with the name ASCOM.Identifier.hhmm.ssffff where hh, mm, ss and ffff are the current hour, minute, second and fraction of second numbers at the time of file creation.

Within the file the format of each line is hh:mm:ss.fff Identifier Message where hh, mm, ss and fff are the hour, minute, second and fractional second at the time that the message was logged, Identifier is the supplied identifier (usually the subroutine, function, property or method from which the message is sent) and Message is the message to be logged.

Inheritance Hierarchy

System..::..Object
  ASCOM.Utilities..::..TraceLogger

See Also