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

Default datasette logging format should be JSON #241

Open
simonw opened this issue Apr 27, 2018 · 0 comments
Open

Default datasette logging format should be JSON #241

simonw opened this issue Apr 27, 2018 · 0 comments
Labels

Comments

@simonw
Copy link
Owner

simonw commented Apr 27, 2018

Structured logs are better. Datasette should default to outputting it's HTTP access log lines as newline delimited JSON instead of the Sanic default format it uses at the moment.

For improved greppability these logs should have keys ordered in a consistent way. Python's JSON module can do this with ordered dictionaries.

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

No branches or pull requests

1 participant