From dev-return-25132-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Tue Feb 5 11:54:20 2013 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 96CB0E24B for ; Tue, 5 Feb 2013 11:54:20 +0000 (UTC) Received: (qmail 90892 invoked by uid 500); 5 Feb 2013 11:54:20 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 90457 invoked by uid 500); 5 Feb 2013 11:54:18 -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 90424 invoked by uid 99); 5 Feb 2013 11:54:17 -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:54:17 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kxepal@gmail.com designates 209.85.212.171 as permitted sender) Received: from [209.85.212.171] (HELO mail-wi0-f171.google.com) (209.85.212.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 11:54:12 +0000 Received: by mail-wi0-f171.google.com with SMTP id hn17so2782892wib.10 for ; Tue, 05 Feb 2013 03:53:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=Mr7CE5YlF35dhmOB+IkSHmAJtO01JSE6NhB/ymy1R/w=; b=P+RWhyqQ1sgQcrhOheV5gISPN4Zg3932xwa6IwOYmwPxtx/+5CyRV3BnqvEmMfXLZX B1vbSULyTTT/WMsR+0TQAtDjYqV43Goxn++BqBCatPXfdlc9yXLveEVKiHNoutGVHdbi BlKhd4doIDudYEgNldsLmVyJLAvOmf2A4epwZ49FoHf5vm5Mj0rtAtwPbznlUBrs2kHf OwBqJhXNqopnwyLjt8qhinJU2ypXLuGItnEaCZbMYArgxhUfW+KjMVlsBGX/5VhA5RHX Bk5jsVg4Boh01IE/oQsItBv0gSqPAPQY8DtnzmWV/kQ6K0OVz2BJAWaR2q6C7erKHj2A S6hg== MIME-Version: 1.0 X-Received: by 10.180.8.4 with SMTP id n4mr16430806wia.13.1360065231370; Tue, 05 Feb 2013 03:53:51 -0800 (PST) Received: by 10.180.86.225 with HTTP; Tue, 5 Feb 2013 03:53:51 -0800 (PST) In-Reply-To: References: Date: Tue, 5 Feb 2013 14:53:51 +0300 Message-ID: Subject: Re: Please review console.log() branch From: Alexander Shorin To: dev@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Hi Jason! Why not query_server.log ? However, this command is also available for externals and os_daemons, so probably even this name may be confused. -- ,,,^..^,,, On Tue, Feb 5, 2013 at 3:38 PM, Jason Smith wrote: > 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