根据进程名称保存日志
根据进程名称每日保存日志,最多保存30天,超过30天的就删除
#ifndef _GTRACELOG_H
#define _GTRACELOG_H
//#include "Stdafx.h"
//#include "log4cpp/Category.hh"
#include <iostream>
#include <time.h>
#include "stdio.h"
#include "WinBase.h"
//#include "../public/include/log4cpp/Category.hh"
//#include "../public/include/log4cpp/PatternLayout.hh"
//#include "../public/include/log4cpp/OstreamAppender.hh"
//#include "../public/include/log4cpp/FileAppender.hh"
//#include "../public/include/log4cpp/Priority.hh"
//#include "../public/include/log4cpp/PropertyConfigurator.hh"
#include "../../public/include/log4cpp/Category.hh"
#include "../../public/include/log4cpp/PatternLayout.hh"
#include "../../public/include/log4cpp/OstreamAppender.hh"
#include "../../public/include/log4cpp/FileAppender.hh"
#include "../../public/include/log4cpp/Priority.hh"
#include "../../public/include/log4cpp/PropertyConfigurator.hh"
#include "../../public/include/log4cpp/RollingFileAppender.hh"
#include "../../public/include/log4cpp/DailyRollingFileAppender.hh"
#include "ServiceCoreHead.h"
#ifdef _WIN32
#include <process.h>
#else
#include <unistd.h>
#endif
using namespace std;
//日志优先级
//enum Priority {
// ERROR,
// WARN,
// INFO,
// DEBUG
//};
//note: wulong 链接文件
//#ifndef _DEBUG
//#pragma comment(lib,"..\public\lib\log4cpp\log4cpp.lib")
//#else
//#pragma comment(lib,"..\public\lib\log4cpp\log4cpp