WriteLog Method
- Last UpdatedApr 08, 2026
- 1 minute read
Write a message to the log using the given log level, and
execute the delegate to get the message string.
| Overload | Description |
|---|---|
| WriteLog(LogLevel,LogDelegate) | Write a message to the log using the given log level, and execute the delegate to get the message string. |
| WriteLog(LogLevel,String,Object[]) | Write a message to the OASyS DNA Log (oasErrLog.log), and potentially to the program specific debug log (programName.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 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. |
| WriteLog(LogLevel,String) | Write a message to the OASyS DNA Log (oasErrLog.log), and potentially to the program specific debug log (programName.log). |