Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
kylehodgetts opened this issue Jul 5, 2022 · 1 comment

Comments

@kylehodgetts
Copy link
Contributor

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"
strider2038 added a commit that referenced this issue Jul 19, 2022
@strider2038
Copy link
Collaborator

Fixed in v0.3.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants