Пример #1
0
 public static Log GetInstance(System.Type clazz)
 {
     string key = clazz.FullName.ToLower();
     object obj = CollectionUtils.Get(lazyMap, key);
     if (obj == null)
     {
         CollectionUtils.Put(lazyMap, key, obj = new Log(clazz));
     }
     return (Log)obj;
 }
Пример #2
0
 public static Log GetInstance(string app,int type)
 {
     string key = app.ToLower();
     object obj = CollectionUtils.Get(lazyMap, key);
     if (obj == null)
     {
         CollectionUtils.Put(lazyMap, key, obj = new Log(app, type));
     }
     return (Log)obj;
 }