/**************************************************************************** Report ·Î±× 󸮿ë Class ----------------------------------------- begin : 2013/11/25 copyright : (C) 2005 Solbox Inc. author : Dev 1 Team email : dev1@solbox.com version : 3.2.0 CopyRight(C) 2005 Solbox Inc. All Rights reserved. Redistribution and use in source and binary forms, with or with out modification, are not permitted in outside of Solbox Inc. *****************************************************************************/ #ifndef __REPORT_LOG_H__ #define __REPORT_LOG_H__ #include #include /// @brief CReportLog /// º» Ŭ·¡½º´Â Àü´Þ¹ÞÀº °æ·Î ÇÏÀ§ report Æú´õ »ó¿¡... /// ¿î¿µÀڵ鿡°Ô Àü´ÞÇÒ report °ü·Ã log ¸¦ ±â·ÏÇϱâ À§ÇÑ Å¬·¡½ºÀÓ. /// lib ¿¡ Á¸ÀçÇÏ´Â CLogger Class °¡ ÇÁ·Î¼¼½º¿¡ ´ëÇØ singleton ¹æ½ÄÀ¸·Î µ¿ÀÛÇϹǷÎ... ÇØ´ç Class ¸¦ »ç¿ëÇϱâ´Â ¾î·Á¿ò. /// µû¶ó¼­ report °ü·Ã ·Î±×¸¸ Àü´ãÇÏ¿© ó¸®Çϱâ À§ÇÑ ·Î±× Class ¸¦ Ãß°¡ÇÔ. class CReportLog { public: // constructor CReportLog(); // destructor ~CReportLog(); // ÃʱâÈ­.. bool Init( const char * szPath ); // log wirte bool Write( const char * szLevel, const char * fmt, ...) __attribute__((format(printf, 3, 4))); // Get last error log void GetLastError( std::string & errorMessage ) { errorMessage = m_strLastError; return; } private: // Log Full Path std::string m_strFullPath; // last Error String std::string m_strLastError; }; #endif /* __REPORT_LOG_H__ */