#ifndef globalfunction_h__ #define globalfunction_h__ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "log4cplus/consoleappender.h" #include #include #include "log4cplus/helpers/appenderattachableimpl.h" #include "log4cplus/helpers/loglog.h" #include 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__