Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2B144E1E5 for ; Tue, 5 Feb 2013 11:39:08 +0000 (UTC) Received: (qmail 45424 invoked by uid 500); 5 Feb 2013 11:39:07 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 45141 invoked by uid 500); 5 Feb 2013 11:39:07 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 45092 invoked by uid 99); 5 Feb 2013 11:39:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 11:39:05 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jhs@iriscouch.com designates 209.85.217.179 as permitted sender) Received: from [209.85.217.179] (HELO mail-lb0-f179.google.com) (209.85.217.179) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 11:39:00 +0000 Received: by mail-lb0-f179.google.com with SMTP id j14so138614lbo.10 for ; Tue, 05 Feb 2013 03:38:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type:x-gm-message-state; bh=yFPxBZ/GjeUDpgjMvTQcMZloqAFmVQyQjE9dbvjIQ4Q=; b=R/TThWmuPyZLzc/4c/3u3ar/ktCOwjFhkwtAfFrgTzNmGue88cYI/3SlJy8d4HtMga 7b8wKnZoeY4aFApgBSwDmGyQzl8DSx5HhRDLU52MZAO5Wzyo7qlHZNGnyHh2PTH55PAH FZLmHqPTod0f8Q+JR6pYT3vHpCT2LDJWVB8W0qP91LHXPfAn73mplM3/OsAIGuX/+blj nZj51SQtKj0JjJbqprrYCOp7xTFMZWFVPpRFC1Y6e7ByXszFMPkEW1dUIFj5Z2mSvenZ 9py6mQcyxGFPL3Mwg1MYBnDwyc0Qs/OdPbe1QSzMfFwtLzwKXbw/v2zCkGuSGoA/svFh pq4g== X-Received: by 10.152.144.138 with SMTP id sm10mr22535807lab.53.1360064318518; Tue, 05 Feb 2013 03:38:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.25.104 with HTTP; Tue, 5 Feb 2013 03:38:08 -0800 (PST) In-Reply-To: References: From: Jason Smith Date: Tue, 5 Feb 2013 11:38:08 +0000 Message-ID: Subject: Re: Please review console.log() branch To: CouchDB Developers Content-Type: multipart/alternative; boundary=e89a8f22c6f593b59204d4f8a643 X-Gm-Message-State: ALoCoQkKGkTjBSV3e0gveGzkYPEAGAsoGBT3L6MQMS6hRAJLIW+aoJ100v7xn+nt7G5R/7XVPRu4 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f22c6f593b59204d4f8a643 Content-Type: text/plain; charset=UTF-8 It used to be called "js_file" however it is properly the result of the ["log", "..."] command from the view server. How about "views_log_file"? On Tue, Feb 5, 2013 at 11:13 AM, Robert Newson wrote: > "view_file" is an awkward name, won't output from shows, lists, etc, > also land here? > > On 5 February 2013 10:15, Jason Smith wrote: > > I want to merge this: > https://github.com/apache/couchdb/commits/console_log > > > > Please comment if you have a moment. It is two changes. > > > > ## console.log() > > > > In addition to good old log(), there is console.log(). It behaves exactly > > like Node.js. It supports a format string and variable arguments. > > > > console.log("doc id is %s and count is %d", doc._id, doc.count) > > console.dir("doc = %j", doc) // JSON format > > console.log("Full request\n%s", util.inspect(req)) > > return { > > body: util.format("%s</title", title) > > } > > // etc. > > > > ## Separate log file for JavaScript > > > > _config/log/view_file = "js.log" > > > > If this is set, every log() or console.log() will additionally go to this > > file. There are no timestamps, no formatting. It is like a console. > > > > I was thinking of adding /_log support, cleaning it up, and then merging > it > > in. > -- Iris Couch --e89a8f22c6f593b59204d4f8a643--