Fields
HideSensitiveInformationFromLog
#Gets or sets whether personal information (such as UserName or MachineName ought to be included in the log. This flag must be set SUUUPER early on because the first thing the Logger does it dump a bunch of system info into the current log stream. At present, this value is not assigned at all, given that https://www.mcneel.com/privacy allows us to write all this data. The problem arises only when the user decides to share the log files, at which point it will be much harder to remove any specific entry.
Properties
Methods
Add
#Log an exception message.
Add
#Log a message. This method is threadsafe.
DeleteOldLogFiles
#Delete all log files older than the retirement age.
Returns: Number of log files deleted.
DumpDiagnosticsToFile
#Write a set of diagnostic messages to an HTML file. This method will not throw.
Returns: True if file was written or updated, false if otherwise.
LogCurrentState
#Write a bunch of information to the log describing the current state of the computer.
public static void LogCurrentState()
MeasureSpan
#Begin a new timespan measure. You *must* dispose this metric in order to include the measures interval in the log.
Returns: Dispoable object for timespan measurement.
MeasureSpan
#Begin a new timespan measure. You *must* dispose this metric in order to include the measures interval in the log.
Returns: Dispoable object for timespan measurement.
ShowDiagnosticsInBrowser
#Show the provided logged entries in a window, and save them as an HTML file on the desktop, or in the temp folder if the desktop cannot be written to.
Returns: The path to the html file if it could be saved, otherwise null. The window is shown regardless.