Search in sources :

Example 1 with Slf4jRequestLogWriter

use of org.apache.hbase.thirdparty.org.eclipse.jetty.server.Slf4jRequestLogWriter in project hbase by apache.

the class HttpRequestLog method getRequestLog.

public static RequestLog getRequestLog(String name) {
    String lookup = SERVER_TO_COMPONENT.get(name);
    if (lookup != null) {
        name = lookup;
    }
    String loggerName = "http.requests." + name;
    Slf4jRequestLogWriter writer = new Slf4jRequestLogWriter();
    writer.setLoggerName(loggerName);
    return new CustomRequestLog(writer, CustomRequestLog.EXTENDED_NCSA_FORMAT);
}
Also used : CustomRequestLog(org.apache.hbase.thirdparty.org.eclipse.jetty.server.CustomRequestLog) Slf4jRequestLogWriter(org.apache.hbase.thirdparty.org.eclipse.jetty.server.Slf4jRequestLogWriter)

Aggregations

CustomRequestLog (org.apache.hbase.thirdparty.org.eclipse.jetty.server.CustomRequestLog)1 Slf4jRequestLogWriter (org.apache.hbase.thirdparty.org.eclipse.jetty.server.Slf4jRequestLogWriter)1