couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Joseph Davis <>
Subject Re: Logging into a database
Date Sun, 18 Oct 2009 01:34:37 GMT

On Oct 17, 2009, at 9:15 PM, Jan Lehnardt <> wrote:

> Hey all,
> I had an itch to scratch and now there is an experimental branch  
> that enables logging to a database:
> Check out the test case on how it is supposed to work:
> You just create a `database = dbname` entry in your configuration  
> under the `[log]` section and CouchDB will start to write log  
> entries to the specified database.
> Depending on the log level this means that each single request to  
> CouchDB triggers multiple writes to the log database. The logger,  
> for now, defaults to delayed_commits. A future improvement, could be  
> using the `batch=ok` module.
> I just wanted to throw this out here inspired by Chris' "releasing  
> things before I go to sleep for the night".
> Let me know what you think.
> Cheers
> Jan
> --

That patch should be restructured to store dbname in the server state.  
While we're at it changing config updates to avoid a server restart  
might be good too. This is similar to the uuid server restart bug that  
we fixed not too long ago. I'll take a crack after dinner.

Paul Davis

View raw message