Index: src/libchcore/TLogger.h =================================================================== diff -u -N -r95e140c080a7424faba1bc9f35098e3cfd56d4e9 -re96806b7f8ff7ca7e9f4afbea603e6351a3dc3e3 --- src/libchcore/TLogger.h (.../TLogger.h) (revision 95e140c080a7424faba1bc9f35098e3cfd56d4e9) +++ src/libchcore/TLogger.h (.../TLogger.h) (revision e96806b7f8ff7ca7e9f4afbea603e6351a3dc3e3) @@ -38,31 +38,30 @@ #define LOG_ERROR(text)\ chcore::TLogger::LogError(text) -BEGIN_CHCORE_NAMESPACE - -// Class manages logging of informations to a file. -class LIBCHCORE_API TLogger : public icpf::log_file +namespace chcore { -public: - TLogger(); + // Class manages logging of informations to a file. + class LIBCHCORE_API TLogger : public icpf::log_file + { + public: + TLogger(); - // Retrieving global object instance - static TLogger& Acquire(); ///< Acquires the Logger object + // Retrieving global object instance + static TLogger& Acquire(); ///< Acquires the Logger object - // Logging - static void LogDebug(const tchar_t* pszText); - static void LogInfo(const tchar_t* pszText); - static void LogWarning(const tchar_t* pszText); - static void LogError(const tchar_t* pszText); + // Logging + static void LogDebug(const tchar_t* pszText); + static void LogInfo(const tchar_t* pszText); + static void LogWarning(const tchar_t* pszText); + static void LogError(const tchar_t* pszText); - // Initialization/settings - void Enable(bool bEnable) throw() { m_bEnabled = bEnable; } + // Initialization/settings + void Enable(bool bEnable) throw() { m_bEnabled = bEnable; } -protected: - static TLogger S_Logger; - bool m_bEnabled; // logging enabled? -}; + protected: + static TLogger S_Logger; + bool m_bEnabled; // logging enabled? + }; +} -END_CHCORE_NAMESPACE - #endif