Search in sources :

Example 1 with AsyncRequestLog

use of org.neo4j.server.web.AsyncRequestLog in project neo4j by neo4j.

the class AbstractNeoServer method setUpHttpLogging.

private void setUpHttpLogging() throws IOException {
    if (!getConfig().get(http_logging_enabled)) {
        return;
    }
    AsyncRequestLog requestLog = new AsyncRequestLog(dependencyResolver.resolveDependency(FileSystemAbstraction.class), new File(config.get(GraphDatabaseSettings.logs_directory), "http.log").toString(), config.get(http_logging_rotation_size), config.get(http_logging_rotation_keep_number));
    webServer.setRequestLog(requestLog);
}
Also used : AsyncRequestLog(org.neo4j.server.web.AsyncRequestLog) FileSystemAbstraction(org.neo4j.io.fs.FileSystemAbstraction) File(java.io.File)

Aggregations

File (java.io.File)1 FileSystemAbstraction (org.neo4j.io.fs.FileSystemAbstraction)1 AsyncRequestLog (org.neo4j.server.web.AsyncRequestLog)1