eis/inc/cda/AlarmLog.h

41 lines
928 B
C
Raw Permalink Normal View History

/*********************************************************************
*
* <EFBFBD><EFBFBD>Ȩ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>: Shanghai Baosight Software Co., Ltd.
*
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD>:
* <EFBFBD><EFBFBD><EFBFBD>ʷ
* 1.0 2014-08-18 jamie <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ע<EFBFBD><EFBFBD>
*
*********************************************************************/
#ifndef __ALARMLOG_h__
#define __ALARMLOG_h__
#include <log4cplus/LOG.h>
#include <common/AlarmDef.h>
#include <pace/AlarmWrapper.h>
class AlarmLog
{
public:
static void Init(const std::string& module);
static void Info(log4cplus::LOG& d,const std::string& almsg);
static void Warn(log4cplus::LOG& d,const std::string& almsg);
static void Error(log4cplus::LOG& d,const std::string& almsg);
//AlarmLog& Info(log4cplus::LOG& d);
//AlarmLog& operator <<(const std::string& almsg);
private:
static const std::string EnCodeing(const std::string& almsg);
//static string almsg;
static iPlature::AlarmWrapper* p_alarm;
};
#endif