muonsoft/openapi-mock

HTTP Access Logs not in JSON format when application log_format set to json

Closed this issue · 1 comments

I would like all the logs to be outputted in JSON format.

Given the following config:

➜ cat openapi-mock.yaml
# application specific options
application:
  debug: false
  log_format: json
  log_level: info

I get the following access logs when curling the api

curl -H "Accept: application/json" localhost:8080/todos

172.17.0.1 - - [05/Jul/2022:10:54:59 +0000] "GET /todos HTTP/1.1" 200 186 "" "curl/7.79.1"

Fixed in v0.3.2