コード例 #1
0
 protected void LogMessage(string message)
 {
     if (EnableDevelopmentLog)
     {
         try { LogEngine.LogMessage(logInfo, fileLogInfo, message); }
         catch
         {
             // YOU CAN LOG TO THE EVENT VIEWER HERE
         }
     }
 }
コード例 #2
0
 protected void LogMessage(Exception ex)
 {
     if (EnableDevelopmentLog)
     {
         try { LogEngine.LogMessage(logInfo, fileLogInfo, ex); }
         catch
         {
             // YOU CAN LOG TO THE EVENT VIEWER HERE
         }
     }
 }