Thetype exposes the following members.
Creates a new TraceLogger instance
Create and enable a new TraceLogger instance with automatic naming based on the supplied log file type
Creates a new TraceLogger instance and initialises filename and type
Enables or disables logging to the file.
Return the full filename of the log file being created
Insert a blank line into the log file
Disposes of the TraceLogger object
Appends further message to a line started by LogStart, does not terminate the line.
Appends further message to a line started by LogStart, appends a hex translation of the message to the line, does not terminate the line.
Closes a line started by LogStart with the supplied message
Closes a line started by LogStart with the supplied message and a hex translation of the message
Logs an issue, closing any open line and opening a continuation line if necessary after the issue message.
Logs a complete message in one call
|LogMessage(String, String, Boolean)|
Logs a complete message in one call, including a hex translation of the message
Displays a message respecting carriage return and linefeed characters
Writes the time and identifier to the log, leaving the line ready for further content through LogContinue and LogFinish
Sets the log filename and type if the constructor is called without parameters
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.