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

Comparing trunk/libxmltv/Core/xmltv_logger.cs (file contents):
Revision 14 by william, Thu Mar 7 09:05:18 2013 UTC vs.
Revision 35 by william, Fri Mar 8 01:22:03 2013 UTC

--- trunk/libxmltv/Core/xmltv_logger.cs	2013/03/07 09:05:18	14
+++ trunk/libxmltv/Core/xmltv_logger.cs	2013/03/08 01:22:03	35
@@ -7,15 +7,15 @@ using Enterprise.Logging;
 
 namespace libxmltv.Core
 {
-    public class xmltv_logger
+    internal class XMLTV_LOGGER
     {
         public static void Initialize()
         {
             try
             {
                 string log_path = Application.StartupPath;
-                string log_filename = string.Format("{0}.log", typeof(xmltv_logger).Assembly.GetName().Name);
-                gLog.Initialize(string.Format(@"{0}\{1}", log_path, log_filename), false, LogLevel.kLogLevel_All);
+                string log_filename = string.Format("{0}.log", typeof(XMLTV_LOGGER).Assembly.GetName().Name);
+                gLog.CreateLog(string.Format(@"{0}\{1}", log_path, log_filename), false, LogLevel.kLogLevel_All);
             }
             catch (Exception)
             {