TIBCO Adapter SDK C++ Reference
MTrace::debug
MTrace
Send a message to the debug role.

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
Parameters Description
MString const & customRole 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.
Declaration
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);
Links
Copyright (c) 2010 TIBCO Software Inc. All rights reserved.