CodeSite日志使用
生活随笔
收集整理的這篇文章主要介紹了
CodeSite日志使用
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
CodeSite日期記錄對于調(diào)試程序而言非常方便,我們可以同時開啟動態(tài)日志監(jiān)視和文件日志:
var
? ? ?Dest: TCodeSiteDestination;
? begin
? ? ?Dest := TCodeSiteDestination.Create( Self );
?????//開啟文件日志
?????Dest.LogFile.Active := True;
? ? ?Dest.LogFile.FileName := 'MyFirstLog.csl';
? ? ?Dest.LogFile.FilePath := '$(MyDocs)';
???? //開啟動態(tài)日志監(jiān)視
?????Dest.Viewer.Active := True; ? // Add this line
?
? ? ?CodeSite.Destination := Dest;
轉(zhuǎn)載于:https://www.cnblogs.com/GarfieldTom/archive/2012/06/22/2558787.html
總結(jié)
以上是生活随笔為你收集整理的CodeSite日志使用的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 一张图说明我们为什么要关注 HTML5
- 下一篇: 标准粒子群优化算法 PSO