WriteLog(LogLevel,String,Object[]) Method
- Last UpdatedApr 08, 2026
- 1 minute read
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.
public static void WriteLog(
DNALog.LogLevel level,
string formatString,
params object[] args
)
public:
static void WriteLog(
DNALog.LogLevel level,
String^ formatString,
... array<Object^>^ args
)
Parameters
- level
- The level that this message is expected to be written at.
- formatString
- A String containing zero or more format specifications.
- args
- An Object array containing zero or more objects to be formatted.