public bool Init() { if (!isInit) { log = LogFactory.GetInstance(LSystem.GetSystemAppName()); isInit = true; } return(isInit); }
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); }
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); }