TIBCO Adapter SDK C++ Reference
|
This method allows message substitution at runtime. For example, if the error message is "DB insert failed for table %1", call debug() like this:
MString sTableName( "FOOBAR" ); pTrace->debug( "DB insert failed for table %1", NULL, NULL, sTableName );
Parameters | Description |
MString const & customRole | This argument is used to send messages to arbitrary roles. |
MString const & message | Message to be sent. |
MTrackingInfo const * pTrackingInfo | If this argument value is NULL, it is ignored. The information contained in the MTrackingInfo instance identified by this argument is traced to the relevant sinks. For further information on message format, see "Trace Message Format" in TIBCO Adapter SDK Programmer's Guide. |
MData const * pData | This argument is ignored. It's reserved for a future implementation. |
MString const & subArgString1 | Substitutes on %1 value contained in the message description. |
MString const & subArgString2 | Substitutes on %2 value contained in the message description. |
MString const & subArgString3 | Substitutes on %3 value contained in the message description. |
MString const & subArgString4 | Substitutes on %4 value contained in the message description. |
MString const & subArgString5 | Substitutes on %5 value contained in the message description. |
MString const & subArgString6 | Substitutes on %6 value contained in the message description. |
virtual void debug(MString const & customRole, MString const & message, MTrackingInfo const * pTrackingInfo, MData const * pData, MString const & subArgString1, MString const & subArgString2, MString const & subArgString3, MString const & subArgString4, MString const & subArgString5, MString const & subArgString6);