Examples of Log4JLogger


Examples of mx4j.log.Log4JLogger

         org.apache.log4j.Logger root = org.apache.log4j.Logger.getRootLogger();
         root.removeAllAppenders();
         ConsoleAppender console = new ConsoleAppender(new PatternLayout("[%c] %p: %m%n"));
         root.addAppender(console);
         Log.redirectTo(new Log4JLogger(), category);
         Log.redirectTo(new LoggerTestRedirector());

         // Create some log for log4j redirector
         MBeanServer server = newMBeanServer();
View Full Code Here

Examples of org.apache.avalon.excalibur.logger.Log4JLogger

        {
            return getDefaultLogger();
        }
        else
        {
            return new Log4JLogger( m_hierarchy.getLogger( categoryName ) );
        }
    }
View Full Code Here

Examples of org.apache.avalon.framework.logger.Log4JLogger

    }

    /* Actaully create the Logger */
    protected Logger doGetLoggerForCategory( final String fullCategoryName )
    {
        return new Log4JLogger( m_hierarchy.getLogger( fullCategoryName ) );
    }
View Full Code Here

Examples of org.apache.avalon.framework.logger.Log4JLogger

        {
            return getDefaultLogger();
        }
        else
        {
            return new Log4JLogger( m_hierarchy.getLogger( categoryName ) );
        }
    }
View Full Code Here

Examples of org.apache.avalon.framework.logger.Log4JLogger

     * Return the default Logger.  This is basically the same
     * as getting the Logger for the "" category.
     */
    public Logger getDefaultLogger()
    {
        return new Log4JLogger( m_hierarchy.getRootLogger() );
    }
View Full Code Here

Examples of org.apache.avalon.framework.logger.Log4JLogger

     * @return an Avalon Logger
     */
    protected org.apache.avalon.framework.logger.Logger createAvalonLogger(
            String name)
    {
        return new Log4JLogger(Logger.getLogger(name));
    }
View Full Code Here

Examples of org.apache.commons.logging.impl.Log4JLogger

        Log instance = (Log) instances.get(clazz);
        if(instance != null) {
            return instance;
        }

        instance=new Log4JLogger(ApplLogger.getLogger(clazz));
        instances.put(clazz, instance);
        return instance;
    }
View Full Code Here

Examples of org.apache.commons.logging.impl.Log4JLogger

        Log instance = (Log) instances.get(name);
        if( instance != null ) {
            return instance;
        }

        instance=new Log4JLogger(ApplLogger.getLogger(name));
        instances.put(name, instance);
        return instance;
    }
View Full Code Here

Examples of org.apache.commons.logging.impl.Log4JLogger

            _log = Logger.getLogger(LOGGER_DESIGNSYNC);
        }

        _fsManager = new StandardFileSystemManager();
        _fsManager.setCacheStrategy(CacheStrategy.MANUAL);
        _fsManager.setLogger(new Log4JLogger(Logger.getLogger(LOGGER_DESIGNSYNC_QUIET)));
        _fsManager.setClassLoader(WGACore.getLibraryLoader());
        _fsManager.setCacheStrategy(getVFSCacheStrategy());
        _fsManager.init();

        _designPath = path;
View Full Code Here

Examples of org.apache.commons.logging.impl.Log4JLogger

    }
  }

  public static void setHiveLoggerLevel(Log log, Level level) {
    if (log instanceof Log4JLogger) {
      Log4JLogger log4JLogger = (Log4JLogger) log;
      log4JLogger.getLogger().setLevel(level);
    } else {
      LOG.error("Don't know how to handle logger {} of type {}", log, log.getClass());
    }
  }
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.