Package org.jboss.netty.logging

Examples of org.jboss.netty.logging.InternalLoggerFactory


public class AhessianLogging
{
  public static void setAhessianLogger(final Logger log)
  {
    InternalLoggerFactory.setDefaultFactory(new InternalLoggerFactory()
    {

      @Override
      public InternalLogger newInstance(String name)
      {
View Full Code Here


* @author <a href="mailto:gang.lvg@taobao.com">kimi</a>
*/
final class NettyHelper {

    public static void setNettyLoggerFactory() {
        InternalLoggerFactory factory = InternalLoggerFactory.getDefaultFactory();
        if (factory == null || !(factory instanceof DubboLoggerFactory)) {
            InternalLoggerFactory.setDefaultFactory(new DubboLoggerFactory());
        }
    }
View Full Code Here

        logger = Logger.getLogger(LOGGER_NAME);
        logger.addAppender(appender);
        logger.setLevel(Level.toLevel(properties.getProperty("logger.level"), Level.ALL));

        // Workaround for "Bug 745866 - (EDG-45) Possible netty logging config problem"
        InternalLoggerFactory.setDefaultFactory(new InternalLoggerFactory() {
            @Override
            public InternalLogger newInstance(String string) {
                return new NettyInternalLogger();
            }
        });
View Full Code Here

TOP

Related Classes of org.jboss.netty.logging.InternalLoggerFactory

Copyright © 2018 www.massapicom. 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.