Table of Contents

CadCrashLogReader

from OpenCAD2D import CadCrashLogReader

class CadCrashLogReader(System.Object) ยท CadCrashLogReader in the .NET reference

Reads the crash log the app writes (%AppData%\OpenCAD2D\crash.log, the older half crash.old.log): a file of entries that begin ==== time ====, then the app, the system, where it was caught, the last command, whether it was fatal and the exception as .NET prints it.

Properties and fields

HeadLines

.NET

HeadLines: ClassVar[int]

The lines of an entry's exception that are kept: its message and the top of its stack.

Methods

Read

.NET

@staticmethod
def Read(path: str, count: int) -> System.Collections.Generic.IReadOnlyList[CadCrashLogEntry]

Reads the newest entries, the newest first: those of the file, then, where it holds fewer than asked for, those of the file of the same name with .old before its extension.