Exemplo n.º 1
0
        public Log GetLogger(string name)
        {
            LogImpl log;

            if (map.TryGetValue(name, out log))
            {
                return(log);
            }
            else
            {
                ILogger logger = repository.GetLogger(name);
                log       = new LogImpl(logger);
                map[name] = log;
            }
            return(log);
        }
Exemplo n.º 2
0
        public Log GetLogger(Type type)
        {
            LogImpl log;

            if (map.TryGetValue(type.FullName, out log))
            {
                return(log);
            }
            else
            {
                ILogger logger = repository.GetLogger(type.FullName);
                log = new LogImpl(logger);
                map[type.FullName] = log;
            }
            return(log);
        }