You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.0 KiB
C++

#ifndef globalfunction_h__
#define globalfunction_h__
#include <boost/lexical_cast.hpp>
#include <boost/filesystem.hpp>
#include <boost/thread.hpp>
#include <boost/regex.hpp>
#include <iostream>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <vector>
#include <string>
#include <log4cplus/logger.h>
#include <log4cplus/loggingmacros.h>
#include <log4cplus/configurator.h>
#include <log4cplus/initializer.h>
#include "log4cplus/consoleappender.h"
#include <log4cplus/fileappender.h>
#include <log4cplus/layout.h>
#include "log4cplus/helpers/appenderattachableimpl.h"
#include "log4cplus/helpers/loglog.h"
#include <QString>
enum emTPALogLevel {
TPA_DEBUG = 0,
TPA_INFO,
TPA_WARN,
TPA_ERROR,
TPA_FATAL,
};
typedef struct tagTPA_APP_OPTION {
QString sName;
QString sDir;
bool bAutoLaunch;
int nRefreshRate;
int nRelaunch;
}TPA_APP_OPTION;
namespace TPA{
void log(const QString& loggername, emTPALogLevel level, const QString& msg);
}
#endif // globalfunction_h__