Re: Couchdb logging

2016-07-11 Thread Joan Touzet
Hi Michael, The 0.6257.467 part is the Erlang PID processing the result. Your best bet to time the duration of the request is to use haproxy ahead of CouchDB itself, and use haproxy's extensive logging features to get the timings you desire. Best regards, Joan Touzet - Original Me

Couchdb logging

2016-07-11 Thread Michael Power
Hello, I noticed couchdb logging looks like: [Mon, 11 Jul 2016 13:33:36 GMT] [info] [<0.6257.467>] ###.###.###.### - - METHOD PATH RESULT I was wondering, if the 0.6257.467 is the duration of the request? If not, is it possible to reconfigure the couchdb log format to include the durat

Re: Unit Test logging with couchDB....

2014-03-21 Thread Simon Metson
Aye - thanks for the clarification Alex On Friday, 21 March 2014 at 08:18, Alexander Shorin wrote: > On Fri, Mar 21, 2014 at 12:12 PM, Simon Metson wrote: > > With python you can use the logging module to send logs (of tests or > > anything) to couch. There's even an http

Re: Unit Test logging with couchDB....

2014-03-21 Thread Alexander Shorin
On Fri, Mar 21, 2014 at 12:12 PM, Simon Metson wrote: > With python you can use the logging module to send logs (of tests or > anything) to couch. There's even an http log handler (forget the name and > don't have enough of an internet connection to remind myself...) that

Re: Unit Test logging with couchDB....

2014-03-21 Thread Simon Metson
With python you can use the logging module to send logs (of tests or anything) to couch. There's even an http log handler (forget the name and don't have enough of an internet connection to remind myself...) that makes this super easy. On Friday, 21 March 2014 at 05:42, Alexan

Re: Unit Test logging with couchDB....

2014-03-20 Thread Alexander Shorin
can capture the base UT runtime stuff and show the pass > fail results...but taking this information, along with anymore detailed > logging and storing it in a central DB for use later on is what I'm looking > for. Not overly hard to do...but that's

RE: Unit Test logging with couchDB....

2014-03-20 Thread Knudsen, Ken
ntime stuff and show the pass fail results...but taking this information, along with anymore detailed logging and storing it in a central DB for use later on is what I'm looking for. Not overly hard to do...but that's what I'm asking the community about: if anyone has done thing's

Re: Unit Test logging with couchDB....

2014-03-20 Thread Alexander Shorin
Hi, Do you mean under "unit test logging with CouchDB" actually storing unittest results as CouchDB documents? -- ,,,^..^,,, On Thu, Mar 20, 2014 at 6:08 PM, Knudsen, Ken wrote: > Hi Everyone, > >Obviously there's a thousand plus ways of doing this...Has anyone

Unit Test logging with couchDB....

2014-03-20 Thread Knudsen, Ken
Hi Everyone, Obviously there's a thousand plus ways of doing this...Has anyone implemented or worked with unit testing frameworks but instead of using that frameworks built in logging mechanism, broke out that logging part and used couchDB instead? With couchDB there wouldn'

Re: Document design: Logging accesses to an item by a user

2011-11-13 Thread Robert Newson
Update handlers just move logic to the server side, they are not atomic or transactional, only the document update itself is. In other words, you *can* get a 409 conflict using an update handler. B. On 13 November 2011 09:24, Marian Steinbach wrote: > Sounds like the relation-document way (havin

Re: Document design: Logging accesses to an item by a user

2011-11-13 Thread Marian Steinbach
Sounds like the relation-document way (having a songaccess doc, equivalent to having had a songaccess table) would be the easiest one. I'll have to look into update handlers though. Thanks guys!

Re: Document design: Logging accesses to an item by a user

2011-11-12 Thread Dominic Tarr
this might be easiest to achieve with a an update handler. you can create all kinds of atomic transactional things like that, on a single document though. the user requests the update handler, which updates the count for that user, and returns the song info, all in one request. On Sun, Nov 13, 2

Re: Document design: Logging accesses to an item by a user

2011-11-12 Thread Manokaran K
You can put it in the user doc or have a third doc. You can't have it on the song doc, because when many users are writing to it, it will cause rev mismatch errors. regds, mano

Re: Document design: Logging accesses to an item by a user

2011-11-12 Thread David Stuebe
g>> Date: Sat, 12 Nov 2011 15:26:58 -0500 To: "couchdb-u...@apache.org<mailto:couchdb-u...@apache.org>" mailto:couchdb-u...@apache.org>> Subject: Document design: Logging accesses to an item by a user Hi! I'm trying to think in CouchDB documents (coming from an

Re: Document design: Logging accesses to an item by a user

2011-11-12 Thread Mark Hahn
I personally would create a third "access" doc type. It would have a link both a song and a user doc.

Document design: Logging accesses to an item by a user

2011-11-12 Thread Marian Steinbach
Hi! I'm trying to think in CouchDB documents (coming from an SQL perspective) and I am wondering how I should set up my documents to represent the following. I have users who play songs as often as they want. Whenever they access a song, in the SQL world I add a record to a song_access table that

Re: [Erlang] Logging

2011-10-06 Thread Paul Davis
Its not the prettiest, but you can do this: Log(lists:flatten(io_lib:format("~p", [Val]))) On Thu, Oct 6, 2011 at 5:34 PM, Thomas Van de Velde wrote: > Hi, > > Is there a way to log from within an Erlang view? I am trying to reproduce > the unit test for the list function and am getting an erro

[Erlang] Logging

2011-10-06 Thread Thomas Van de Velde
Hi, Is there a way to log from within an Erlang view? I am trying to reproduce the unit test for the list function and am getting an error. I'd like to log the value of "Val" so I can understand the underlying data structure. I tried error_logger:info_report(Val). Thanks! Output from view: {"tot

Re: Error while logging in

2010-11-14 Thread Dave Cottlehuber
On 12 November 2010 00:27, Andrei Varanovich wrote: > Do you mean in the http://127.0.0.1:5984/_utils/config.html ? > The thing is that I cannot get access to it as soon as I am not logged in. you can edit the local.ini file directly from notepad or your editor of choice, then restart couch from

RE: Error while logging in

2010-11-11 Thread Andrei Varanovich
Subject: Re: Error while logging in just remove the admin user from the [admins] config section On 11.11.2010, at 12:04, Andrei Varanovich wrote: > Hi all, > > Running CouchDB 0.11 on Windows Server 2003 x64. > Created an "admin" user. Try to log in and get "Error

Re: Error while logging in

2010-11-11 Thread Sebastian Cohnen
just remove the admin user from the [admins] config section On 11.11.2010, at 12:04, Andrei Varanovich wrote: > Hi all, > > Running CouchDB 0.11 on Windows Server 2003 x64. > Created an "admin" user. Try to log in and get "Error logging in: > function_clause"

Error while logging in

2010-11-11 Thread Andrei Varanovich
Hi all, Running CouchDB 0.11 on Windows Server 2003 x64. Created an "admin" user. Try to log in and get "Error logging in: function_clause". Are there any ways to switch CouchDB in the "Admin Party" mode? Thanks, Andrei

User app activity Logging

2010-11-01 Thread Zdravko Gligic
Hi Folks, I have a community use case where I need to track: a) user id b) user action c) doc._id e) date.time Wiki talks about short doc._id values making a huge difference on storage and performance. I am assuming that the same arguments also apply to view indexing as it uses the same b-tree in

Re: Logging

2010-05-24 Thread sbisbee
Yup, use the log() function. :-) It will spit whatever you pass it to the log, including the json of objects/arrays/etc.: log(doc). Cheers, -- Sam Bisbee Sent from my mobile phone. --Original Message-- From: Cory Zue To: user ReplyTo: user@couchdb.apache.org Subject: Logging Sent: May

Logging

2010-05-24 Thread Cory Zue
Is there an easy way to log something from within a couchdb view/filter/update method? thanks, Cory

Re: CouchDB for logging & file storage

2009-06-22 Thread Robert Newson
o non-rdbms storage systems. I am working on an application in >> >> which we need to log different user actions as plain text. I am not of >> the >> >> opinion to make use of our rdbms for this activity as writing this on a >> >> rdbms can be an expansive proces

Re: CouchDB for logging & file storage

2009-06-22 Thread Sergey Shepelev
am working on an application in > >> which we need to log different user actions as plain text. I am not of > the > >> opinion to make use of our rdbms for this activity as writing this on a > >> rdbms can be an expansive process. > >> > >> &

Re: CouchDB for logging & file storage

2009-06-22 Thread Robert Newson
DB for this activity? Also I am looking to store >> all >> the attachments or BLOB into some non-rdbms solution. Can I make use of >> CouchDB here as well. This way I will just have to add one network >> component >> to address file storage and logging of user action.

Re: CouchDB for logging & file storage

2009-06-22 Thread Sergey Shepelev
re > all > the attachments or BLOB into some non-rdbms solution. Can I make use of > CouchDB here as well. This way I will just have to add one network > component > to address file storage and logging of user action. > > > > I would probably need to show the logged informa

CouchDB for logging & file storage

2009-06-22 Thread Nitin Gupta
for this activity? Also I am looking to store all the attachments or BLOB into some non-rdbms solution. Can I make use of CouchDB here as well. This way I will just have to add one network component to address file storage and logging of user action. I would probably need to show the logged