/[xmltv_parser]/trunk/xmltv_parser/main.cs
ViewVC logotype

Diff of /trunk/xmltv_parser/main.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 67 by william, Sat Mar 9 01:22:07 2013 UTC revision 68 by william, Sat Mar 9 01:28:31 2013 UTC
# Line 28  namespace xmltv_parser Line 28  namespace xmltv_parser
28              gLog.CreateLog(string.Format(@"{0}\{1}", log_path, log_filename), false, LogLevel.kLogLevel_All_NoProgress, new EventHandler<LoggerOnFlushEventArgs>(Log_OnFlush));              gLog.CreateLog(string.Format(@"{0}\{1}", log_path, log_filename), false, LogLevel.kLogLevel_All_NoProgress, new EventHandler<LoggerOnFlushEventArgs>(Log_OnFlush));
29  #if DEBUG  #if DEBUG
30              LogLevel gLevel = gLog.LogLevel;              LogLevel gLevel = gLog.LogLevel;
31              gLevel |= LogLevel.kLogLevel_VerboseDebug;              gLevel |= LogLevel.kLogLevel_VerboseDebug; // this slows things down alot
32              gLevel |= LogLevel.kLogLevel_Debug;                          gLevel |= LogLevel.kLogLevel_Debug;            
33              gLog.SetLogLevel(gLevel);              gLog.SetLogLevel(gLevel);
34  #else  #else
35              LogLevel gLevel = LogLevel.kLogLevel_Default;              LogLevel gLevel = LogLevel.kLogLevel_Default; // set the default log level: Info, Warn, Error, Debug
36                // it is OK for kLogLevel_Debug to be set in Release mode ... must of the chatty messages are from kLogLevel_VerboseDebug
37                gLevel &= ~LogLevel.kLogLevel_VerboseDebug; // ensure this is not set            
38              gLog.SetLogLevel(gLevel);              gLog.SetLogLevel(gLevel);
39  #endif  #endif
40    

Legend:
Removed from v.67  
changed lines
  Added in v.68

  ViewVC Help
Powered by ViewVC 1.1.22