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 7A246E443 for ; Fri, 8 Feb 2013 18:23:06 +0000 (UTC) Received: (qmail 58656 invoked by uid 500); 8 Feb 2013 18:23:06 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 58599 invoked by uid 500); 8 Feb 2013 18:23:05 -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 58587 invoked by uid 99); 8 Feb 2013 18:23:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2013 18:23:05 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [80.244.253.218] (HELO mail.traeumt.net) (80.244.253.218) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2013 18:22:57 +0000 Received: from [10.0.0.19] (91-66-82-235-dynip.superkabel.de [91.66.82.235]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.traeumt.net (Postfix) with ESMTPSA id 107BF14373 for ; Fri, 8 Feb 2013 19:18:22 +0100 (CET) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: Please review console.log() branch From: Jan Lehnardt In-Reply-To: Date: Fri, 8 Feb 2013 19:22:36 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <03571757-D26C-4D93-B3CD-E9B015D6E161@apache.org> References: To: dev@couchdb.apache.org X-Mailer: Apple Mail (2.1499) X-Virus-Checked: Checked by ClamAV on apache.org Looking good. I=92d say s/view/query/ and get that sorted. Also, we need entries in NOTICE for the components you import. Best Jan --=20 On Feb 5, 2013, at 11:15 , Jason Smith wrote: > I want to merge this: = https://github.com/apache/couchdb/commits/console_log >=20 > Please comment if you have a moment. It is two changes. >=20 > ## console.log() >=20 > In addition to good old log(), there is console.log(). It behaves = exactly > like Node.js. It supports a format string and variable arguments. >=20 > console.log("doc id is %s and count is %d", doc._id, doc.count) > console.dir("doc =3D %j", doc) // JSON format > console.log("Full request\n%s", util.inspect(req)) > return { > body: util.format("%s</title", title) > } > // etc. >=20 > ## Separate log file for JavaScript >=20 > _config/log/view_file =3D "js.log" >=20 > 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. >=20 > I was thinking of adding /_log support, cleaning it up, and then = merging it > in.