ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/xmltv_parser/trunk/xmltv_parser/main.cs
(Generate patch)

Comparing:
trunk/xmltv_parser/Form1.cs (file contents), Revision 12 by william, Thu Mar 7 05:48:51 2013 UTC vs.
trunk/xmltv_parser/main.cs (file contents), Revision 13 by william, Thu Mar 7 07:58:47 2013 UTC

--- trunk/xmltv_parser/Form1.cs	2013/03/07 05:49:56	12
+++ trunk/xmltv_parser/main.cs	2013/03/07 07:58:47	13
@@ -6,14 +6,19 @@ using System.Drawing;
 using System.Text;
 using System.Windows.Forms;
 using libxmltv.Core;
+using Enterprise.Logging;
 
 namespace xmltv_parser
 {
-    public partial class Form1 : Form
+    public partial class main : Form
     {
-        public Form1()
+        public main()
         {
             InitializeComponent();
+            string log_path = Application.StartupPath;
+            string log_filename = string.Format("{0}.log", typeof(main).Assembly.GetName().Name);
+            gLog.Initialize(string.Format(@"{0}\{1}", log_path, log_filename), false, LogLevel.kLogLevel_All);
+            //gLog.Info.WriteLine("main");
         }
 
         private void Form1_Load(object sender, EventArgs e)