Example #1
0
 public bool Init()
 {
     if (!isInit)
     {
         log    = LogFactory.GetInstance(LSystem.GetSystemAppName());
         isInit = true;
     }
     return(isInit);
 }
Example #2
0
        public static LogImpl GetInstance(Type clazz)
        {
            string key = clazz.FullName.ToLower();
            object obj = lazyMap[key];

            if (obj == null)
            {
                lazyMap.Add(key, obj = new LogImpl(clazz));
            }
            return((LogImpl)obj);
        }
Example #3
0
        public static LogImpl GetInstance(string app, int type)
        {
            string key = app.ToLower();
            object obj;

            if (lazyMap.ContainsKey(key))
            {
                obj = lazyMap[key];
            }
            else
            {
                lazyMap.Add(key, obj = new LogImpl(app, type));
            }
            return((LogImpl)obj);
        }