Config key
access-log

This type provides the following service implementations:

  • io.helidon.webserver.spi.ServerFeatureProvider

Configuration options

Table 1. Optional configuration options
key type default value description

enabled

boolean

true

Whether this feature will be enabled.

format

string

 

The format for log entries (similar to the Apache LogFormat).

Log format elements
%h IP address of the remote host HostLogEntry
%l The client identity. This is always undefined in Helidon. UserIdLogEntry
%u User ID as asserted by Helidon Security. UserLogEntry
%t The timestamp TimestampLogEntry
%r The request line (`"GET /favicon.ico HTTP/1.0"`) RequestLineLogEntry
%s The status code returned to the client StatusLogEntry
%b The entity size in bytes SizeLogEntry
%D The time taken in microseconds (start of request until last byte written) TimeTakenLogEntry
%T The time taken in seconds (start of request until last byte written), integer TimeTakenLogEntry
%{header-name}i Value of header `header-name` HeaderLogEntry

logger-name

string

io.helidon.webserver.AccessLog

Name of the logger used to obtain access log logger from System.getLogger(String). Defaults to AccessLogFeature.DEFAULT_LOGGER_NAME.

sockets

string[]

 

List of sockets to register this feature on. If empty, it would get registered on all sockets. The logger used will have the expected logger with a suffix of the socket name.

weight

double

1000.0

Weight of the access log feature. We need to log access for anything happening on the server, so weight is high: io.helidon.webserver.accesslog.AccessLogFeature.WEIGHT.