You can configure access log settings for HTTP endpoints.
To enable logging for all endpoints using common settings, include httpAccessLogging as a top-level element in your server.xml file:
<httpAccessLogging />
To enable logging for individual endpoints, use an accessLogging child element and specify a file path that does not conflict with other logs:
<httpEndpoint id="defaultHttpEndpoint">
<accessLogging filepath="${server.output.dir}/logs/http_defaultEndpoint_access.log"/>
</httpEndpoint>
For a list of the available HTTP server side properties and their descriptions, see Apache Module mod_log_config.
For a list of the available log format properties and their descriptions, see the accessLogFormat configuration for the full profile in HTTP transport channel custom properties. This log format string is specified using the logFormat attribute of httpAcccessLogging or accessLogging elements in server.xml:
<httpAccessLogging logFormat="%h %u %{t}W "%r" %s %b"/>
or
<httpEndpoint id="defaultHttpEndpoint">
<accessLogging filepath="${server.output.dir}/logs/http_defaultEndpoint_access.log"
logFormat="%h %i %u %t "%r" %s %b" />
</httpEndpoint>