ACE调试信息的输出

   /**



00470 * Format a message to the thread-safe ACE logging mechanism. Valid


00471 * options (prefixed by '%', as in printf format strings) include:


00472 * - 'A': print an ACE_timer_t value (which could be either double


00473 * or ACE_UINT32.)


00474 * - 'a': abort the program at this point abruptly.


00475 * - 'c': print a character


00476 * - 'C': print a character string


00477 * - 'i', 'd': print a decimal number


00478 * - 'I': indent according to nesting depth (obtained from


00479 * ACE_Trace::get_nesting_indent()).


00480 * - 'e', 'E', 'f', 'F', 'g', 'G': print a double


00481 * - 'l': print line number where an error occurred.


00482 * - 'M': print the name of the priority of the message.


00483 * - 'm': return the message corresponding to errno value, e.g., as


00484 * done by strerror()


00485 * - 'N': print file name where the error occurred.


00486 * - 'n': print the name of the program (or "" if not set)


00487 * - 'o': print as an octal number


00488 * - 'P': print out the current process id


00489 * - 'p': print out the appropriate errno message from sys_errlist,


00490 * e.g., as done by perror()


00491 * - 'Q': print out the uint64 number


00492 * - 'q': print out the int64 number


00493 * - '@': print a void* pointer (in hexadecimal)


00494 * - 'r': call the function pointed to by the corresponding argument


00495 * - 'R': print return status


00496 * - 'S': print out the appropriate _sys_siglist entry corresponding


00497 * to var-argument.


00498 * - 's': print out a character string


00499 * - 'T': print timestamp in hour:minute:sec:usec format.


00500 * - 'D': print timestamp in month/day/year hour:minute:sec:usec format.


00501 * - 't': print thread id (1 if single-threaded)


00502 * - 'u': print as unsigned int


00503 * - 'w': prints a wide character


00504 * - 'W': print a wide character string


00505 * - 'x': print as a hex number


00506 * - 'X': print as a hex number


00507 * - 'z': print an ACE_OS::WChar character


00508 * - 'Z': print an ACE_OS::WChar character string


00509 * - '%': print out a single percent sign, '%'


00510 */




from: http://www.aoc.nrao.edu/php/tjuerges/ALMA/ACE-5.5.2/html/ace/Log__Msg_8h-source.html



for example:



ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("process_xxxx '%s'/n"), ACE_TEXT("entering")));



ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("process_xxxx Find it '%W'/n"), fd.cFileName)); // wide string

你可能感兴趣的:(C/C++,character,string,hex,logging,include,thread)