Exemplo n.º 1
0
 public static PurposeLog CreateLog(Type type, string logfile)
 {
     lock (lockObject)
     {
         if (allLog.ContainsKey(type))
         {
             return(allLog[type]);
         }
         else
         {
             var log = new PurposeLog(logfile);
             allLog.Add(type, log);
             return(log);
         }
     }
 }
Exemplo n.º 2
0
		public static PurposeLog CreateLog(Type type, string logfile)
		{
			lock (lockObject)
			{
				if (allLog.ContainsKey(type))
				{
					return allLog[type];
				}
				else
				{
					var log = new PurposeLog(logfile);
					allLog.Add(type, log);
					return log;
				}
			}
		}