If the format is left unspecified, the default Apache combined format will be used.
If the time zone is left unspecified, the default zone
id will be used.
| Modifier and Type | Field and Description |
|---|---|
| private final File | |
| private AccessLogFormat | |
| private String | |
| private int | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | AccessLogBuilder(String
The location of the access log file. file)Create a new |
| public | AccessLogBuilder(File
The location of the access log file. file)Create a new |
| Modifier and Type | Method and Description |
|---|---|
| public AccessLogProbe | build()
Build an |
| public AccessLogBuilder | format(AccessLogFormat format)
Set the |
| public AccessLogBuilder | format(String format)
Set the format as a |
| public ServerConfiguration | instrument(ServerConfiguration
The serverConfiguration)ServerConfiguration to instrument.Build an |
| public AccessLogBuilder | |
| public AccessLogBuilder | |
| public AccessLogBuilder | rotationPattern(String rotationPattern)
Set up automatic log-file rotation based on a specified |
| public AccessLogBuilder | statusThreshold(int statusThreshold)
Set the minimum response status that will trigger an entry in an access log configured by this instance. |
| public AccessLogBuilder | synchronous(boolean synchronous)
Specify whether access log entries should be written synchronously or not. |
| public AccessLogBuilder | |
| public AccessLogBuilder | |
| public AccessLogBuilder |
| file | back to summary |
|---|---|
| private final File file | |
| format | back to summary |
|---|---|
| private AccessLogFormat format | |
| rotationPattern | back to summary |
|---|---|
| private String rotationPattern | |
| statusThreshold | back to summary |
|---|---|
| private int statusThreshold | |
| synchronous | back to summary |
|---|---|
| private boolean synchronous | |
| AccessLogBuilder | back to summary |
|---|---|
| public AccessLogBuilder(String file) Create a new
| |
| AccessLogBuilder | back to summary |
|---|---|
| public AccessLogBuilder(File file) Create a new
| |
| build | back to summary |
|---|---|
| public AccessLogProbe build() Build an | |
| format | back to summary |
|---|---|
| public AccessLogBuilder format(AccessLogFormat format) Set the | |
| format | back to summary |
|---|---|
| public AccessLogBuilder format(String format) Set the format as a | |
| instrument | back to summary |
|---|---|
| public ServerConfiguration instrument(ServerConfiguration serverConfiguration) Build an
| |
| rotatedDaily | back to summary |
|---|---|
| public AccessLogBuilder rotatedDaily() Set up automatic log-file rotation, on a daily basis.
For example, if the file name specified at construction was
| |
| rotatedHourly | back to summary |
|---|---|
| public AccessLogBuilder rotatedHourly() Set up automatic log-file rotation, on a hourly basis.
For example, if the file name specified at construction was
| |
| rotationPattern | back to summary |
|---|---|
| public AccessLogBuilder rotationPattern(String rotationPattern) Set up automatic log-file rotation based on a specified
For example, if the file name specified at construction was
| |
| statusThreshold | back to summary |
|---|---|
| public AccessLogBuilder statusThreshold(int statusThreshold) Set the minimum response status that will trigger an entry in an access log configured by this instance.
For example a threshold of | |
| synchronous | back to summary |
|---|---|
| public AccessLogBuilder synchronous(boolean synchronous) Specify whether access log entries should be written synchronously or not.
If | |
| timeZone | back to summary |
|---|---|
| public AccessLogBuilder timeZone(TimeZone timeZone) Set the time zone that will be used to represent dates. | |
| timeZone | back to summary |
|---|---|
| public AccessLogBuilder timeZone(final ZoneId zoneId) Set the time zone that will be used to represent dates. | |
| timeZone | back to summary |
|---|---|
| public AccessLogBuilder timeZone(String timeZone) Set the time zone that will be used to represent dates. The time zone will be looked up by time zone identifier, and if this is invalid or unrecognized, it will default to GMT. | |