Examples of Hierarchy


Examples of org.apache.log.Hierarchy

        if (cfg == null) {
            return;
        }

        // Make sure same hierarchy is used
        Hierarchy hier = Hierarchy.getDefaultHierarchy();
        LogKitLoggerManager manager = new LogKitLoggerManager(null, hier, null, null);

        DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder();
        try {
            Configuration c = builder.buildFromFile(cfg);
View Full Code Here

Examples of org.apache.log4j.Hierarchy

    void addRepository(ClassLoader cl) {
  if( ht.get(cl) != null ) {
      throw new IllegalStateException("ClassLoader " + cl + " already registered");
  }
  ht.put(cl, new Hierarchy(new RootCategory( defLevel)));
    }
View Full Code Here

Examples of org.apache.log4j.Hierarchy

    }
        
    // the returned value is guaranteed to be non-null
    public LoggerRepository getLoggerRepository() {
  ClassLoader cl = Thread.currentThread().getContextClassLoader();
  Hierarchy hierarchy = (Hierarchy) ht.get(cl);
 
  if(hierarchy == null) {
      hierarchy = new Hierarchy(new RootCategory(defLevel));
      ht.put(cl, hierarchy);
  }
  return hierarchy;
    }
View Full Code Here

Examples of org.apache.log4j.Hierarchy

    if (loggingContextName == null || Constants.DEFAULT_REPOSITORY_NAME.equals(loggingContextName)) {
      return LogManager.defaultLoggerRepository;
    } else {
      //System.out.println("loggingContextName is ["+loggingContextName+"]");
      Hierarchy hierarchy = (Hierarchy) hierMap.get(loggingContextName);

      if (hierarchy == null) {
        // create new hierarchy
        hierarchy = new Hierarchy(new RootLogger(Level.DEBUG));
        hierarchy.setName(loggingContextName);
        hierMap.put(loggingContextName, hierarchy);

        // configure log4j internal logging
        IntializationUtil.log4jInternalConfiguration(hierarchy);
View Full Code Here

Examples of org.apache.log4j.Hierarchy

        if ((logpath != null) && (logpath.trim().length() != 0))
        {
            logfile = logpath + _fs + logfile;
        }
        _creator =
            new Hierarchy(new RootCategory(Logger.getRootLogger()
                .getLevel()));
        try
        {
            new FileInputStream(logfile).close();
            new PropertyConfigurator().doConfigure(logfile, _creator);
View Full Code Here

Examples of org.apache.log4j.Hierarchy

    public Log4JConfAdapter()
    {
        /**
         * Copied from org.apache.log4j.LogManager.
         */
        super( new Hierarchy( new RootCategory( Level.ALL ) ) );
    }
View Full Code Here

Examples of org.apache.log4j.Hierarchy

    if (loggingContextName == null) {
      return defaultRepository;
    } else {
      System.out.println("loggingContextName is ["+loggingContextName+"]");
      Hierarchy hierarchy = (Hierarchy) hierMap.get(loggingContextName);

      if (hierarchy == null) {
        // create new hierarchy
        hierarchy = new Hierarchy(new RootLogger(Level.DEBUG));
        hierarchy.setName(loggingContextName);
        hierMap.put(loggingContextName, hierarchy);

        // configure log4j internal logging
        IntializationUtil.log4jInternalConfiguration(hierarchy);
View Full Code Here

Examples of org.apache.log4j.Hierarchy

        LoggerRepository repository = this.repository.get(ccl == null ? NO_CCL_CLASSLOADER : ccl.hashCode());
        if (repository == null)
        {
            final RootLogger root = new RootLogger(Level.INFO);
            repository = new Hierarchy(root);

            try
            {
                ConfigWatchDog configWatchDog = null;
                if (ccl instanceof MuleApplicationClassLoader)
View Full Code Here

Examples of org.olap4j.metadata.Hierarchy

            }
            final MemberType memberType2 = toMemberType(type2);
            if (memberType2 == null) {
                return false;
            }
            final Hierarchy hierarchy1 = memberType1.getHierarchy();
            final Hierarchy hierarchy2 = memberType2.getHierarchy();
            return equal(hierarchy1, hierarchy2);
        }
    }
View Full Code Here

Examples of org.olap4j.metadata.Hierarchy

        assertTrue(dimensionMap.containsKey(dim1));
        assertEquals("Test1", dimensionMap.get(dim1));

        Map<Hierarchy, String> hierarchyMap =
            new HashMap<Hierarchy, String>();
        Hierarchy hchy1 = dim1.getDefaultHierarchy();
        hierarchyMap.put(hchy1, "Test2");
        assertTrue(hierarchyMap.containsKey(hchy1));
        assertEquals("Test2", hierarchyMap.get(hchy1));
        assertTrue(dimensionMap.containsKey(hchy1.getDimension()));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.