You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by garrensmith <gi...@git.apache.org> on 2012/11/08 11:12:01 UTC
couchdb pull request: logs can be sent as json
GitHub user garrensmith opened a pull request:
https://github.com/apache/couchdb/pull/39
logs can be sent as json
If you request the couchdb logs (http://127.0.0.1:5984/_log). I want the option of getting them returned in json format. This makes it much easier to work with the logs in javascript.
`curl http://127.0.0.1:5984/_log?format=json` for JSON log output.
I've added the format="json" q-value for when the request wants it to be formatted in json. Hopefully there is a better way of doing this.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/garrensmith/couchdb json_logs
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/couchdb/pull/39.patch
----
commit d08fcb2dcaad41d2798c8f435e3fa944613f3f99
Author: Garren Smith <ga...@gmail.com>
Date: 2012-11-08T10:08:03Z
logs can be sent as json
----