public class AccessLogConfig extends Object
Modifier and Type | Field and Description |
---|---|
String |
baseFileName
The access log file base name, defaults to 'quarkus' which will give a log file
name of 'quarkus.log'.
|
String |
category
The log category to use if logging is being done via the standard log mechanism (i.e.
|
boolean |
enabled
If access logging is enabled.
|
Optional<String> |
logDirectory
The log directory to use when logging access to a file
If this is not set then the current working directory is used.
|
String |
logSuffix
The log file suffix
|
boolean |
logToFile
If logging should be done to a separate file.
|
String |
pattern
The access log pattern:
If this is the string 'common' or 'combined' 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}"
Otherwise consult the Quarkus documentation for the full list of variables that can be used.
|
boolean |
rotate
If the log should be rotated daily
|
Constructor and Description |
---|
AccessLogConfig() |
@ConfigItem(defaultValue="false") public boolean enabled
@ConfigItem(defaultValue="common") public String pattern
@ConfigItem(defaultValue="false") public boolean logToFile
@ConfigItem(defaultValue="quarkus") public String baseFileName
@ConfigItem public Optional<String> logDirectory
@ConfigItem(defaultValue=".log") public String logSuffix
@ConfigItem(defaultValue="io.quarkus.http.access-log") public String category
@ConfigItem(defaultValue="true") public boolean rotate
Copyright © 2020 JBoss by Red Hat. All rights reserved.