00001
00016 #ifndef CLOGGERPROFILE_HXX_
00017 #define CLOGGERPROFILE_HXX_
00018 #include <string>
00019
00020 namespace cfp
00021 {
00022 namespace logger
00023 {
00024 namespace sub
00025 {
00026 class CLoggerProfile;
00027
00034 class CLoggerProfile
00035 {
00036 private:
00038 bool m_boAppenderFile;
00040 bool m_boAppenderStdout;
00042 bool m_boDebug;
00044 bool m_boError;
00046 bool m_boTrace;
00048 bool m_boWarn;
00050 std::wstring m_strAppenderFileName;
00052 std::wstring m_strPropertyFileName;
00054 time_t m_timeMTime;
00055 bool isUpdateProfile();
00056 void loadProfile();
00057
00058 protected:
00059
00060 public:
00061 CLoggerProfile();
00062 virtual ~CLoggerProfile();
00063 std::wstring getAppenderFileName();
00064 bool isAppenderFile();
00065 bool isAppenderStdout();
00066 bool isDebug();
00067 bool isError();
00068 bool isTrace();
00069 bool isWarn();
00070
00071 };
00072 }
00073 }
00074 }
00075
00076 #endif