/[xmltv_parser]/trunk/libxmltv/Core/xmltv_logger.cs
ViewVC logotype

Diff of /trunk/libxmltv/Core/xmltv_logger.cs

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

--- trunk/libxmltv/Core/xmltv_logger.cs	2013/03/08 01:22:03	35
+++ trunk/libxmltv/Core/xmltv_logger.cs	2013/03/08 10:19:32	55
@@ -7,14 +7,14 @@
 
 namespace libxmltv.Core
 {
-    internal 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);
+                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)
@@ -25,9 +25,12 @@
                 */
             }
         }
-        public static iglog Log
-        {
-            get { return gLog.Log; }
-        }
+        public static void SetLogLevel(int loglvl) { SetLogLevel((LogLevel)loglvl); }
+        public static void SetLogLevel(LogLevel loglvl) { gLog.SetLogLevel(loglvl); }
+        public static ilogger Debug { get { return gLog.Debug; } }
+        public static ilogger Error { get { return gLog.Error; } }
+        public static ilogger Info { get { return gLog.Info; } }
+        public static ilogger Warn { get { return gLog.Warn; } }
+        public static ilog Verbose { get { return gLog.Verbose; } }
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22