/* */ #ifndef _D_LOG_FACTORY_H_ #define _D_LOG_FACTORY_H_ #include "common.h" #include "Logger.h" class LogFactory { private: static string filename; static Logger* logger; public: /** * Get logger instance. Returned logger is singleton. * This function is not thread-safe. */ static Logger* getInstance(); /** * Set a filename to write log. */ static void setLogFile(const string& name) { filename = name; } /** * Releases used resources */ static void release(); }; #endif // _D_LOG_FACTORY_H_