I have below issues with Express Gateway logs:
- I have enabled Express Gateway logs according to their documentation, but I couldn't find any log file created under my gateway root.
When I start the gateway with below command it shows debug logs, but the changes that I do in gateway.config.yml config will not reflect in debug log.
LOG_LEVEL=debug npm start
How do I add timestamp for the log entries?
Edited:
gateway.config.yml config values:
pipelines:
default:
apiEndpoints:
- api
policies:
- log: # policy name
- action: # array of condition/actions objects
#timestamp: true
message: Test ${req.method} ${req.originalUrl} # parameter for log action
# Uncomment
key-auth:when instructed to in the Getting Started guide.
- key-auth:
- proxy:
- action:
serviceEndpoint: httpbin
changeOrigin: true