Add a logging option to HOCON for configuring logging requests and response.
Configure logging to routing configuration to log requests and responses from the specified endpoint. Similarly, configure to upstream configuration to the specified upstream.
The logging configuration has options:
logger: Name to use when logging
requestLogLevel: LogLevel to use when logging requests.
successfulResponseLogLevel: LogLevel to use when logging successful responses (e.g., no unhandled exception).
failureResponseLogLevel: LogLevel to use when logging failure responses (e.g., failed with an exception).
Add a
logging
option to HOCON for configuring logging requests and response. Configurelogging
torouting
configuration to log requests and responses from the specified endpoint. Similarly, configure toupstream
configuration to the specified upstream. Thelogging
configuration has options:logger
: Name to use when loggingrequestLogLevel
:LogLevel
to use when logging requests.successfulResponseLogLevel
:LogLevel
to use when logging successful responses (e.g., no unhandled exception).failureResponseLogLevel
:LogLevel
to use when logging failure responses (e.g., failed with an exception).samplingRate
: Rate to sample requests to log.Please read
hocon/README.md
for more information.