반응형 닷넷프레임워크 클래스 라이브러리1 [개발] Visual C++ 디버깅 Trace log 파일 작성하기 닷넷 프레임워크 클래스 라이브러리에 있는 Trace 클래스를 이용하면 된다. String^ logFile = "C:\\service_log.txt"; TextWriterTraceListener^ serviceTraceListener = nullptr; // Create a log file for trace output. // A new file is created each time. If a // previous log file exists, it is overwritten. StreamWriter^ myFile = File::CreateText( logFile ); // Create a new trace listener that writes to the text file, // and add it to.. 2010. 8. 17. 이전 1 다음 반응형