|
我的程序
-------------------------------------------------------------------------------------------------
- #include"ace/OS.h"
- #include "ace/Log_Msg.h"
- #include "ace/Service_Config.h"
- #include <ace/ACE.h>
- #include <ace/Configuration.h>
- #include <ace/OS_main.h>
- #include <ace/OS_NS_netdb.h>
- int ACE_TMAIN(int argc, ACE_TCHAR* argv[])
- {
- if (ACE_Service_Config::open (argc,
- argv,
- ACE_DEFAULT_LOGGER_KEY,
- 1,
- 0,
- 1) < 0)
- ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("%p\n"),
- ACE_TEXT ("Service Config open")),
- 1);
- for(int j = 0; j < 10000000; j++) {
- for(int i = 0; i < 998; i++) {
- ACE_DEBUG((LM_WARNING, "-"));
- }
- ACE_DEBUG((LM_WARNING, "\r\n"));
- }
-
- while(1) {
- ACE_OS::sleep(1);
- }
- return 0;
- }
复制代码 ----------------------------------------------------------------------------------------------------------
配置文件
dynamic Logger Service_Object * ACE:_make_ACE_Logging_Strategy()
"-m 1 -i 1 -N 1 -s log.out -f STDERR|OSTREAM -p WARNING|~DEBUG"
我已经写了-m 1了,但是日志还是超过1K,不知道为什么? |
|