DNALog Class Members
- Last UpdatedApr 08, 2026
- 4 minute read
The following tables list the members exposed by DNALog.
| Name | Description | |
|---|---|---|
![]() | DNALog Constructor | Do not call constructor. All functionality is provided through static methods. Marked as obsolete as in future this will be inaccessible. |
| Name | Description | |
|---|---|---|
![]() ![]() | LineInfoDisplayedInLog | Identifies whether line and file information will be displayed on each line within the log file. |
| Name | Description | |
|---|---|---|
![]() ![]() | DumpFatalExceptionToLog | Dump an exception into the OASyS DNA log, allowing the program to keep running. |
![]() ![]() | DumpNonFatalExceptionToLog | Overloaded. Dump an exception into the OASyS DNA log, allowing the program to keep running. |
![]() ![]() | DumpStackToLog | Request that the current stack be written to the OASyS DNA Log, with the associated reason string describing why the stack trace was requested. |
![]() ![]() | GetMsgTypeFromNum | Given a message number that maps to a specific message within a message DLL, retrieve the 'EventType' that this particular message has been identified with. |
![]() ![]() | Initialize | Initialize the debug API. Call this once per process. Note that if you do not call this method, it will be called automatically on your behalf upon the first call to write to the log. Use this method before setting any state methods, such as SetLogFileName(). Calls to this method will reset any previous settings (such as the log file name). |
![]() ![]() | SetLogFileName | Sets the debug log file name that will be used when any debug log messages are written. |
![]() ![]() | SetProcessNameDisplayedInLogFile | Sets the process name that should be displayed in the DNA Log file (oasErrLog). |
![]() ![]() | ToggleDebug | Toggle the windows debug event for the given process. |
![]() ![]() | WriteLog | Overloaded. Write a message to the log using the given log level, and execute the delegate to get the message string. |
![]() ![]() | WriteWindowsEventLog | Overloaded. Write a generic message to the Windows Event Log. This version of the method allows for a format string argument to be given, as per the System.String.Format(System.String,System.Object) method. The message written to the event log is then a copy of format in which the format specifications have been replaced by the String equivalent of the corresponding instances of Object in args. |



