2016/101 내 마음대로 짠 로그라이터 일을하면서 로그를 남겨야 할 일이 많아서 이와 같이구현한다. #include #include typedef enum { NORMAL = 0, WARNING = 1, DEBUGMODE = 2, } LogLevel; //로그레벨은 class CLogWriter{ public: CLogWriter(){ } ~CLogWriter(){ } //method public: void InitializeLogWriter(){ //로그라이터 설정 GetWorkDirectory(strCurPath); //현재 디렉토리 가져오는 함수 //로그 경로 만들기. strLogPath.Format(_T("%s\\Log"), strCurPath); if (::PathFileExists(strLogPath) == FALSE){ ::Cre.. 2016. 10. 13. 이전 1 다음 728x90