} // end SetTraceOptions //- #endregion #region // Public Static Methods //------------------------ /// <summary> /// Writes a given message, of a given level, assigned to a given group in the current trace file. /// </summary> /// <param name="level">The level of tracing. It can be one of the EnumTraceLevel values.</param> /// <param name="mask">The group to be traced. It can be one of the EnumTraceGroup values.</param> /// <param name="objectID">The identifier for the traced object. (it could be the name of the method /// where the trace message is inserted).</param> /// <param name="message">The tracing message. It is a free text and denotes the reason of the trace.</param> /// <include /// file='TBN.doc.xml' /// path='//class[@name="Trace"]/method[@name="WriteLine_1"]/doc/*' /// /> public static void WriteLine( byte level, uint mask, string objectID, string message) { string FormattedString = message; OTBFunctions.OTTrace(level, mask, objectID, FormattedString); } // end WriteLine
} // end WriteLine /// <summary> /// Writes a given message, of a given level, assigned to a given group in the current trace file. /// The line is written based on a given text format. /// </summary> /// <param name="level">The level of tracing. It can be one of the EnumTraceLevel values.</param> /// <param name="mask">The group to be traced. It can be one of the EnumTraceGroup values.</param> /// <param name="objectID">The identifier for the traced object. (it could be the name of the method /// where the trace message is inserted).</param> /// <param name="message">The tracing message. It is a free text and denotes the reason of the trace.</param> /// <param name="args">Parameter list for formatted message string.</param> /// <include /// file='TBN.doc.xml' /// path='//class[@name="Trace"]/method[@name="WriteLine_2"]/doc/*' /// /> public static void WriteLine( byte level, uint mask, string objectID, string message, params object[] args) { string FormattedString = String.Format(message, args); OTBFunctions.OTTrace(level, mask, objectID, FormattedString); } // end WriteLine