Package io.quarkus.vertx.http.runtime
Interface AccessLogConfig
public interface AccessLogConfig
-
Method Summary
Modifier and TypeMethodDescriptionThe access log file base name, defaults to 'quarkus' which will give a log file name of 'quarkus.log'.category()The log category to use if logging is being done via the standard log mechanism (i.e.booleanIf rerouted requests should be consolidated into one log entrybooleanenabled()If access logging is enabled.A regular expression that can be used to exclude some paths from logging.The log directory to use when logging access to a fileThe log file suffixbooleanIf logging should be done to a separate file.pattern()The access log pattern.booleanrotate()If the log should be rotated daily
-
Method Details
-
enabled
@WithDefault("false") boolean enabled()If access logging is enabled. By default this will log via the standard logging facility -
excludePattern
A regular expression that can be used to exclude some paths from logging. -
pattern
The access log pattern.If this is the string `common`, `combined` or `long` then this will use one of the specified named formats:
- common: `%h %l %u %t "%r" %s %b` - combined: `%h %l %u %t "%r" %s %b "%{i,Referer}" "%{i,User-Agent}"` - long: `%r\n%{ALL_REQUEST_HEADERS}`
Otherwise, consult the Quarkus documentation for the full list of variables that can be used.
-
logToFile
@WithDefault("false") boolean logToFile()If logging should be done to a separate file. -
baseFileName
The access log file base name, defaults to 'quarkus' which will give a log file name of 'quarkus.log'. -
logDirectory
The log directory to use when logging access to a fileIf this is not set then the current working directory is used.
-
logSuffix
The log file suffix -
category
The log category to use if logging is being done via the standard log mechanism (i.e. if base-file-name is empty). -
rotate
@WithDefault("true") boolean rotate()If the log should be rotated daily -
consolidateReroutedRequests
@WithDefault("false") boolean consolidateReroutedRequests()If rerouted requests should be consolidated into one log entry
-