Configuring The Access Log
Payara Micro supports a number of commands to help you configure access logging. It is easiest to configure access logging before it is bootstrapped, however you can edit domain.xml
also, as Payara Micro can reload that dynamically.
Configuration Option | Description | Default Value |
---|---|---|
|
Sets user defined directory path for the access log |
|
|
Sets user defined log format for the access log |
|
|
Sets user defined access log write interval |
300 |
|
Sets user defined simple date time suffix for access log filenames |
|
|
Sets user defined prefix for access log filenames |
All options available for configuring Payara Micro can be seen by running the JAR with the --help
option, or by consulting Payara Micro Command Line Options
Usage Examples
Configuration Option | Usage | Result |
---|---|---|
|
|
Access logging is enabled |
|
|
Payara [22/11/2019:09:24:36 00] 200 532 |
|
|
Access log write interval is set to write its buffer to file immediately |
|
|
server_access_log.%09%30%AM.txt |
|
|
Production.2019-11-22.txt |