org.eclipse.jetty.server.Server.setRequestLog()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(155)

本文整理了Java中org.eclipse.jetty.server.Server.setRequestLog()方法的一些代码示例,展示了Server.setRequestLog()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Server.setRequestLog()方法的具体详情如下:
包路径:org.eclipse.jetty.server.Server
类名称:Server
方法名:setRequestLog

Server.setRequestLog介绍

暂无

代码示例

代码示例来源:origin: jphp-group/jphp

@Signature
public void setRequestLogHandler(Environment env, @Nullable Invoker invoker) {
  if (invoker == null) {
    server.setRequestLog(null);
  } else {
    server.setRequestLog((request, response) -> {
      invoker.callAny(new PHttpServerRequest(env, request), new PHttpServerResponse(env, response));
    });
  }
}

代码示例来源:origin: linkedin/cruise-control

requestLog.setExtended(false);
requestLog.setPreferProxiedForAddress(true);
server.setRequestLog(requestLog);

代码示例来源:origin: com.opentable.components/otj-metrics-core

/**
 * Create a consumer that wraps the servers request log with a wrapper that reports metrics for each HTTP status code returned
 * @param metrics registry to register metrics with
 * @return the consumer to add the status code metrics wrapper
 */
@Bean
public Consumer<Server> statusReporter(MetricRegistry metrics) {
  return server -> {
    server.setRequestLog(new StatusCodeMetrics(server.getRequestLog(), metrics, PREFIX));
  };
}

代码示例来源:origin: unascribed-archive/Visage

server.setRequestLog(new AsyncNCSARequestLog(config.getString("log")));

代码示例来源:origin: jenkinsci/maven-hpi-plugin

this.server.setRequestLog(this.requestLog);

代码示例来源:origin: com.yahoo.vespa/jdisc_http_service

server.setRequestLog(new AccessLogRequestLog(accessLog));
setupJmx(server, serverConfig);
((QueuedThreadPool)server.getThreadPool()).setMaxThreads(serverConfig.maxWorkerThreads());

代码示例来源:origin: gravitee-io/graviteeio-access-management

requestLog.setLogTimeZone("GMT");
server.setRequestLog(requestLog);

代码示例来源:origin: gravitee-io/gravitee-management-rest-api

requestLog.setLogTimeZone("GMT");
server.setRequestLog(requestLog);

代码示例来源:origin: io.gravitee.am.gateway/gravitee-am-gateway-jetty

requestLog.setLogTimeZone("GMT");
server.setRequestLog(requestLog);

代码示例来源:origin: io.gravitee.am.management/gravitee-am-management-api-jetty

requestLog.setLogTimeZone("GMT");
server.setRequestLog(requestLog);

代码示例来源:origin: apache/felix

this.requestLogTracker = new RequestLogTracker(this.context, this.config.getRequestLogFilter());
  this.requestLogTracker.open();
  this.server.setRequestLog(requestLogTracker);
} catch (InvalidSyntaxException e) {
  SystemLogger.error("Invalid filter syntax in request log tracker", e);

相关文章