Package io.dropwizard.jetty

Examples of io.dropwizard.jetty.RequestLogFactory


    /**
     * Method called to suppress all request logging; usually during testing.
     */
    @SuppressWarnings("unchecked")
    public THIS disableRequestLog() {
        RequestLogFactory reqLog = serverFactory().getRequestLogFactory();
        reqLog.setAppenders(ImmutableList.<AppenderFactory>of());       
        return (THIS) this;
    }
View Full Code Here


    environment.jersey().register(new UserProvider());

    final DefaultServerFactory serverFactory = ServiceUtil.createServerFactory(
        config.getHttpEndpoint(), config.getAdminPort(), false);

    final RequestLogFactory requestLog = new RequestLogFactory();
    requestLog.setAppenders(ImmutableList.<AppenderFactory>of());
    serverFactory.setRequestLogFactory(requestLog);

    this.server = serverFactory.build(environment);

    setUpRequestLogging();
View Full Code Here

TOP

Related Classes of io.dropwizard.jetty.RequestLogFactory

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.