You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Robert Newson (JIRA)" <ji...@apache.org> on 2009/08/12 14:19:14 UTC
[jira] Created: (COUCHDB-464) Allow POST to _log for external
processes
Allow POST to _log for external processes
-----------------------------------------
Key: COUCHDB-464
URL: https://issues.apache.org/jira/browse/COUCHDB-464
Project: CouchDB
Issue Type: New Feature
Reporter: Robert Newson
Attachments: 0001-Add-POST-support-to-_log.patch
Add POST support to _log so that external processes can also log to couch.log. This would allow couchdb-lucene (to pick a random example) to log consistently.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (COUCHDB-464) Allow POST to _log for external
processes
Posted by "Robert Newson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Newson updated COUCHDB-464:
----------------------------------
Attachment: 0001-Add-POST-support-to-_log.patch
Uses 202 (Accepted) instead of 200 and uses 400 with a readable error message if the log level isn't recognized.
> Allow POST to _log for external processes
> -----------------------------------------
>
> Key: COUCHDB-464
> URL: https://issues.apache.org/jira/browse/COUCHDB-464
> Project: CouchDB
> Issue Type: New Feature
> Reporter: Robert Newson
> Attachments: 0001-Add-POST-support-to-_log.patch, 0001-Add-POST-support-to-_log.patch
>
>
> Add POST support to _log so that external processes can also log to couch.log. This would allow couchdb-lucene (to pick a random example) to log consistently.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (COUCHDB-464) Allow POST to _log for external
processes
Posted by "Robert Newson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Newson updated COUCHDB-464:
----------------------------------
Attachment: 0001-Add-POST-support-to-_log.patch
the case clause is remarkably ugly and duplicative. Advice welcome.
> Allow POST to _log for external processes
> -----------------------------------------
>
> Key: COUCHDB-464
> URL: https://issues.apache.org/jira/browse/COUCHDB-464
> Project: CouchDB
> Issue Type: New Feature
> Reporter: Robert Newson
> Attachments: 0001-Add-POST-support-to-_log.patch
>
>
> Add POST support to _log so that external processes can also log to couch.log. This would allow couchdb-lucene (to pick a random example) to log consistently.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (COUCHDB-464) Allow POST to _log for external
processes
Posted by "Damien Katz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12742341#action_12742341 ]
Damien Katz commented on COUCHDB-464:
-------------------------------------
Why not just write the log messages to a db?
> Allow POST to _log for external processes
> -----------------------------------------
>
> Key: COUCHDB-464
> URL: https://issues.apache.org/jira/browse/COUCHDB-464
> Project: CouchDB
> Issue Type: New Feature
> Reporter: Robert Newson
> Attachments: 0001-Add-POST-support-to-_log.patch, 0001-Add-POST-support-to-_log.patch, 0001-Add-POST-support-to-_log.patch
>
>
> Add POST support to _log so that external processes can also log to couch.log. This would allow couchdb-lucene (to pick a random example) to log consistently.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (COUCHDB-464) Allow POST to _log for external
processes
Posted by "Paul Joseph Davis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Joseph Davis updated COUCHDB-464:
--------------------------------------
Skill Level: Regular Contributors Level (Easy to Medium)
> Allow POST to _log for external processes
> -----------------------------------------
>
> Key: COUCHDB-464
> URL: https://issues.apache.org/jira/browse/COUCHDB-464
> Project: CouchDB
> Issue Type: New Feature
> Reporter: Robert Newson
> Attachments: 0001-Add-POST-support-to-_log.patch, 0001-Add-POST-support-to-_log.patch, 0001-Add-POST-support-to-_log.patch
>
>
> Add POST support to _log so that external processes can also log to couch.log. This would allow couchdb-lucene (to pick a random example) to log consistently.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (COUCHDB-464) Allow POST to _log for external
processes
Posted by "Robert Newson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12742327#action_12742327 ]
Robert Newson commented on COUCHDB-464:
---------------------------------------
To log to couch.log you post a JSON object like this;
{"level":"info|debug|error", "message":"your message here"}
> Allow POST to _log for external processes
> -----------------------------------------
>
> Key: COUCHDB-464
> URL: https://issues.apache.org/jira/browse/COUCHDB-464
> Project: CouchDB
> Issue Type: New Feature
> Reporter: Robert Newson
> Attachments: 0001-Add-POST-support-to-_log.patch, 0001-Add-POST-support-to-_log.patch, 0001-Add-POST-support-to-_log.patch
>
>
> Add POST support to _log so that external processes can also log to couch.log. This would allow couchdb-lucene (to pick a random example) to log consistently.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (COUCHDB-464) Allow POST to _log for external
processes
Posted by "Robert Newson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12748200#action_12748200 ]
Robert Newson commented on COUCHDB-464:
---------------------------------------
Because people using couchdb-lucene with couchdb would prefer to read couch.log for the log messages, and I suspect that applies to other externals/addons, etc.
It's clumsy if all addons are forced to log differently, it reduces the degree that addons can be integrated. Since couchdb has support for grafting external processes (which actually *can* log, I think), it's a shame that db_update_notification processes cannot.
That said, for couchdb-lucene, I intend to get off db_update_notification entirely and move indexing into the the external searching process instead (typicall mapped to _fti). I think I didn't do that before because the external was only started on demand? I forget.
> Allow POST to _log for external processes
> -----------------------------------------
>
> Key: COUCHDB-464
> URL: https://issues.apache.org/jira/browse/COUCHDB-464
> Project: CouchDB
> Issue Type: New Feature
> Reporter: Robert Newson
> Attachments: 0001-Add-POST-support-to-_log.patch, 0001-Add-POST-support-to-_log.patch, 0001-Add-POST-support-to-_log.patch
>
>
> Add POST support to _log so that external processes can also log to couch.log. This would allow couchdb-lucene (to pick a random example) to log consistently.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (COUCHDB-464) Allow POST to _log for external
processes
Posted by "Robert Newson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Newson updated COUCHDB-464:
----------------------------------
Attachment: 0001-Add-POST-support-to-_log.patch
back to 200 for success. 202 implies an asynchronous handling of the request, and it isn't quite. While the log message is not fsynced to disk, which means it does happen after the client gets its 200, it's not that big a deal.
> Allow POST to _log for external processes
> -----------------------------------------
>
> Key: COUCHDB-464
> URL: https://issues.apache.org/jira/browse/COUCHDB-464
> Project: CouchDB
> Issue Type: New Feature
> Reporter: Robert Newson
> Attachments: 0001-Add-POST-support-to-_log.patch, 0001-Add-POST-support-to-_log.patch, 0001-Add-POST-support-to-_log.patch
>
>
> Add POST support to _log so that external processes can also log to couch.log. This would allow couchdb-lucene (to pick a random example) to log consistently.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.