couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vlad GURDIGA <gurd...@gmail.com>
Subject Re: show request
Date Sun, 26 Jul 2009 20:11:27 GMT
On Sun, Jul 26, 2009 at 10:40 PM, Paul Davis<paul.joseph.davis@gmail.com> wrote:
> Vlad,
>
> I meant in your show function you can log messages like such:
>
> function(doc, req)
> {
>    log(req);
> }

Right.
And that's exactly what I did.

>
> And that'll print to where ever couchdb happens to be logging.

And this is my case would be the console. Right?

>
> On Sun, Jul 26, 2009 at 2:38 PM, Vlad GURDIGA<gurdiga@gmail.com> wrote:
>> I'm using CouchDB build from the trunk source, so it logs to the console.
>>
>> I've added the "log(req)" and set the log level in local.ini to
>> "debug", but I do not see anything about the req in the log, just
>> headers, and records like these:
>>
>> [info] [<0.52.0>] 127.0.0.1 - - 'GET' /s1/_design/s1/_show/book 200
>> [debug] [<0.72.0>] 'GET' /_utils/script/json2.js {1,1}
>>
>>
>> I guess I need to look somewhere else or to switch something else on/off.
>>
>> Is this "log" function (and maybe other such goodness) documented somewhere?
>>
>>
>> Thanks a lot!
>>
>> On Sun, Jul 26, 2009 at 9:05 PM, Paul Davis<paul.joseph.davis@gmail.com> wrote:
>>> Not sure about documentation, but its a JSON representation of the
>>> HTTP request. You can try using the log() function to print it to the
>>> CouchDB log.
>>>
>>> Paul Davis
>>>
>>> On Sun, Jul 26, 2009 at 1:16 PM, Vlad GURDIGA<gurdiga@gmail.com> wrote:
>>>> Hello!
>>>>
>>>> Is there any documentation on the structure of the "req" parameter
>>>> given to shows? (The scripts in the /shows/ directory)
>>>>
>>>> Thank you!
>>>>
>>>
>>
>

Mime
View raw message