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 189367B57 for ; Mon, 12 Sep 2011 18:07:34 +0000 (UTC) Received: (qmail 28153 invoked by uid 500); 12 Sep 2011 18:07:33 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 28106 invoked by uid 500); 12 Sep 2011 18:07:33 -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 28094 invoked by uid 99); 12 Sep 2011 18:07:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Sep 2011 18:07:33 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Sep 2011 18:07:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A9D938D2B6 for ; Mon, 12 Sep 2011 18:07:09 +0000 (UTC) Date: Mon, 12 Sep 2011 18:07:09 +0000 (UTC) From: "Paul Joseph Davis (JIRA)" To: dev@couchdb.apache.org Message-ID: <408409941.18205.1315850829692.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1514792371.17906.1315847768949.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (COUCHDB-1278) Add Apache httpd-style common log access logging. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-1278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13102862#comment-13102862 ] Paul Joseph Davis commented on COUCHDB-1278: -------------------------------------------- I would be quite in favor of adding this with a bit of an extension after we branch 1.2. Specifically I'd like to see access logs in separate files from error logs with each having independent levels (well, access with an on/off, and verbosity for error logs). The only gotchya is that it means we need to look at adding nonce values to match up between the two files. The nonce patch isn't overly difficult if people are interested. > Add Apache httpd-style common log access logging. > ------------------------------------------------- > > Key: COUCHDB-1278 > URL: https://issues.apache.org/jira/browse/COUCHDB-1278 > Project: CouchDB > Issue Type: New Feature > Reporter: Jan Lehnardt > > This module introduces a new log file couch_access.log in the spirit of > Apache httpd's access.log. > The log format is specified here: > http://en.wikipedia.org/wiki/Common_Log_Format > The module defaults to the more commonly used `extended` format, > but can be configured to use the standard log format as well. > This is a new module rather than an extension to the couch_log > module to allow easy addition. Ideally, this will be a plugin in the future. > A note for chunked responses, the response body length reported is > "chunked" rather than the number of bytes. The case is unspecified > in the format description. Maybe the fix is keeping track of bytes > sent in a chunked response, but I didn't want to make the first stab > at this more complicated that it has to be. I'm happy to adjust. > See the full diff here: > https://github.com/janl/couchdb/commit/614091e49380b3afab3c34ff65e6d87623059b8b > I'm not proposing this to be added to 1.1.x, but if anybody wants it, there's a patch here: > https://github.com/janl/couchdb/commit/508af053257c074ec37c9bd658479cc21b8d20d4 > (The only difference is the specification of the couch_access_log module on startup, as that > moved from couch_server_sup.erl to couch_primary_services.erl) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira