Java源码示例:org.jboss.netty.logging.InternalLoggerFactory

示例1
public static void main(String[] args) throws Exception {
    int port = 8080;
    String filtersPath = "/Users/nbeveridge/Development/git/zuul-netty/zuul-core/src/main/filters/pre";
    if (args.length >= 2) {
        port = Integer.parseInt(args[0]);
        filtersPath = args[1];
    }

    InternalLoggerFactory.setDefaultFactory(new Slf4JLoggerFactory());
    LOG.info("Starting server...");

    ZuulFiltersLoader changeNotifier = new ZuulFiltersLoader(
            Paths.get(filtersPath));
    ProxyServer proxyServer = new ProxyServer(port)
            .setFiltersChangeNotifier(changeNotifier);

    proxyServer.run().get();
    changeNotifier.reload();


    JmxReporter.startDefault(Metrics.defaultRegistry());

    //ConsoleReporter.enable(1, TimeUnit.SECONDS);
}
 
示例2
public static void setNettyLoggerFactory() {
    InternalLoggerFactory factory = InternalLoggerFactory.getDefaultFactory();
    if (factory == null || !(factory instanceof DubboLoggerFactory)) {
        InternalLoggerFactory.setDefaultFactory(new DubboLoggerFactory());
    }
}
 
示例3
public static void setNettyLoggerFactory() {
    InternalLoggerFactory factory = InternalLoggerFactory.getDefaultFactory();
    if (factory == null || !(factory instanceof DubboLoggerFactory)) {
        InternalLoggerFactory.setDefaultFactory(new DubboLoggerFactory());
    }
}
 
示例4
public static void setNettyLoggerFactory() {
    InternalLoggerFactory factory = InternalLoggerFactory.getDefaultFactory();
    if (factory == null || !(factory instanceof DubboLoggerFactory)) {
        InternalLoggerFactory.setDefaultFactory(new DubboLoggerFactory());
    }
}
 
示例5
public static void setNettyLoggerFactory() {
    InternalLoggerFactory factory = InternalLoggerFactory.getDefaultFactory();
    if (factory == null || !(factory instanceof DubboLoggerFactory)) {
        InternalLoggerFactory.setDefaultFactory(new DubboLoggerFactory());
    }
}
 
示例6
public static void setNettyLoggerFactory() {
    InternalLoggerFactory factory = InternalLoggerFactory.getDefaultFactory();
    if (factory == null || !(factory instanceof DubboLoggerFactory)) {
        InternalLoggerFactory.setDefaultFactory(new DubboLoggerFactory());
    }
}
 
示例7
public static void setNettyLoggerFactory() {
    InternalLoggerFactory factory = InternalLoggerFactory.getDefaultFactory();
    if (factory == null || !(factory instanceof DubboLoggerFactory)) {
        InternalLoggerFactory.setDefaultFactory(new DubboLoggerFactory());
    }
}
 
示例8
public static void setupSlf4jLoggerFactory() {
    InternalLoggerFactory.setDefaultFactory(LOGGER_FACTORY);
}
 
示例9
public static void main(String[] args) {
    InternalLoggerFactory.setDefaultFactory(new Slf4JLoggerFactory());

    LOG.info("Starting mock server...");
    new MockEndpoint().run();
}
 
示例10
public static void main(String[] args) {
    InternalLoggerFactory.setDefaultFactory(new Slf4JLoggerFactory());

    LOG.info("Starting server...");
    new HttpServer(80).run();

    JmxReporter.startDefault(Metrics.defaultRegistry());

    //ConsoleReporter.enable(1, TimeUnit.SECONDS);
}