📄 mfc_log.cpp
字号:
// MFC_Log.cpp,v 1.2 2003/07/31 01:02:12 dhinton Exp
// MFC_Log.cpp: implementation of the MFC_Log class.
//
//////////////////////////////////////////////////////////////////////
#include "MFC_Log.h"
#if defined (ACE_WIN32)
# include "stdafx.h"
#endif /* ACE_WIN32 */
#include "ace/Log_Record.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
MFC_Log::MFC_Log()
{
}
void
MFC_Log::log(ACE_Log_Record& log_record)
{
unsigned long priority = log_record.type();
char Message[512];
ACE_OS::sprintf(Message,"%d.%03ld %s", log_record.time_stamp().sec(),
log_record.time_stamp().usec()/ 1000, log_record.msg_data());
#if defined (ACE_WIN32)
::OutputDebugString(Message);
#endif /* ACE_WIN32 */
}
MFC_Log::~MFC_Log()
{
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -