Ejemplo n.º 1
0
 //For completeness sake
 private static void UnRegister(ADLLogger logger)
 {
     if (LoggerMap.ContainsKey(logger.ProjectDebugConfig))
     {
         LoggerMap[logger.ProjectDebugConfig].Remove(logger);
     }
 }
Ejemplo n.º 2
0
 protected ALoggable(IProjectDebugConfig settings, string name = null)
 {
     if (!CreatedLoggers.ContainsKey(GetType()))
     {
         ADLLogger <T> l = new ADLLogger <T>(settings, name ?? GetType().Name);
         CreatedLoggers[GetType()] = l;
     }
 }
Ejemplo n.º 3
0
 private static void Register(ADLLogger logger)
 {
     if (LoggerMap.ContainsKey(logger.ProjectDebugConfig))
     {
         LoggerMap[logger.ProjectDebugConfig].Add(logger);
     }
     else
     {
         LoggerMap[logger.ProjectDebugConfig] = new List <ADLLogger> {
             logger
         };
     }
 }