Пример #1
0
        public static MLogger GetLogger(string className)
        {
            MLogger objResult = new MLogger()
            {
                mstrCurrentClassName = className
            };

            return(objResult);
        }
Пример #2
0
        public static MLogger GetLogger(Type oneType)
        {
            MLogger objResult = new MLogger()
            {
                mstrCurrentClassName = oneType.ToString()
            };

            return(objResult);
        }
Пример #3
0
 public static MLogger GetLogger(Type oneType)
 {
     if (!ISLoad)
     {
         log4net.Config.XmlConfigurator.Configure(new System.IO.FileInfo(typeof(MLogger).Assembly.Location + ".config"));
         ISLoad = true;
     }
     MLogger objResult = new MLogger() { mstrCurrentClassName = oneType.ToString() };
     return objResult;
 }
Пример #4
0
 public static MLogger GetLogger(string className)
 {
     if (!ISLoad)
     {
        //MessageBox.Show(typeof(MLogger).Assembly.Location);
         log4net.Config.XmlConfigurator.Configure(new System.IO.FileInfo(typeof(MLogger).Assembly.Location + ".config"));
         ISLoad = true;
     }
     MLogger objResult = new MLogger() { mstrCurrentClassName = className };
     return objResult;
 }
Пример #5
0
        public static MLogger GetLogger(Type oneType)
        {
            if (!ISLoad)
            {
                log4net.Config.XmlConfigurator.Configure(new System.IO.FileInfo(typeof(MLogger).Assembly.Location + ".config"));
                ISLoad = true;
            }
            MLogger objResult = new MLogger()
            {
                mstrCurrentClassName = oneType.ToString()
            };

            return(objResult);
        }
Пример #6
0
        public static MLogger GetLogger(string className)
        {
            if (!ISLoad)
            {
                //MessageBox.Show(typeof(MLogger).Assembly.Location);
                log4net.Config.XmlConfigurator.Configure(new System.IO.FileInfo(typeof(MLogger).Assembly.Location + ".config"));
                ISLoad = true;
            }
            MLogger objResult = new MLogger()
            {
                mstrCurrentClassName = className
            };

            return(objResult);
        }
Пример #7
0
 public static MLogger GetLogger(Type oneType)
 {
     MLogger objResult = new MLogger() { mstrCurrentClassName = oneType.ToString() };
     return objResult;
 }
Пример #8
0
 public static MLogger GetLogger(string className)
 {
     MLogger objResult = new MLogger() { mstrCurrentClassName = className };
     return objResult;
 }