/[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 40 by william, Fri Mar 8 02:40:55 2013 UTC revision 41 by william, Fri Mar 8 02:44:25 2013 UTC
# Line 22  namespace xmltv_parser Line 22  namespace xmltv_parser
22              InitializeComponent();              InitializeComponent();
23              string log_path = Application.StartupPath;              string log_path = Application.StartupPath;
24              string log_filename = string.Format("{0}.log", typeof(main).Assembly.GetName().Name);              string log_filename = string.Format("{0}.log", typeof(main).Assembly.GetName().Name);
25              gLog.CreateLog(string.Format(@"{0}\{1}", log_path, log_filename), false, LogLevel.kLogLevel_All, new EventHandler<LoggerOnFlushEventArgs>(Logger_OnFlush));              gLog.CreateLog(string.Format(@"{0}\{1}", log_path, log_filename), false, LogLevel.kLogLevel_All, new EventHandler<LoggerOnFlushEventArgs>(Log_OnFlush));
26          }          }
27    
28          StringBuilder log_flusher = new StringBuilder();          StringBuilder log_flusher = new StringBuilder();
29          void Logger_OnFlush(object sender, LoggerOnFlushEventArgs e)          void Log_OnFlush(object sender, LoggerOnFlushEventArgs e)
30          {          {
31              //Console.Write(e.Buffer);                      //Console.Write(e.Buffer);        
32              log_flusher.Append(e.Buffer);              log_flusher.Append(e.Buffer);

Legend:
Removed from v.40  
changed lines
  Added in v.41

  ViewVC Help
Powered by ViewVC 1.1.22