code: public Log getInstance(String name) throws LogConfigurationException
      {
          String match="";
          for (int i=prefixes.size();name!=null && i-->0;)
          {
              String prefix=(String)prefixes.get(i);
              if (name.startsWith(prefix) && prefix.length()>match.length())
                  match=prefix;
          }
          if (match.length()>0)
              name=match+".*";
          
          // Get value
          Object o = attributes.get(name);
          
          // Dereference string attributes
          while(o!=null && o instanceof String)
              o=attributes.get(o);
          
          // return actual log.
          if (o instanceof Log)
              return (Log)o;
          return log;
      }
docs: /* (non-Javadoc)
  @see org.apache.commons.logging.LogFactory#getInstance(java.lang.String)