On Sun, Jul 26, 2009 at 10:40 PM, Paul Davis<[email protected]> 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<[email protected]> 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<[email protected]> >> 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<[email protected]> wrote: >>>> Hello! >>>> >>>> Is there any documentation on the structure of the "req" parameter >>>> given to shows? (The scripts in the /shows/ directory) >>>> >>>> Thank you! >>>> >>> >> >
