2010-01-20 85 views
0

我對SCSF很陌生。 因此,我正在開發C#中的SCSF Winforms(使用2007年5月版的VSNet 2005 Fwk2.0,我無法使用新版本)。我已經實現了一個業務模塊。記錄錯誤的最佳做法是什麼?我配置了日誌記錄應用程序塊。但如何使用它?SCSF記錄錯誤

感謝答案

回答

0

這裏是你的答案:

//Here is how I declare a "Type" logger 
public static Log logger = Log.CreateForType(typeof(Entry)); 

//Then, when you wants to log something 
logger.Verbose("This is an example");