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 "<unknown>" 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

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值