Return-Path: X-Original-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E4149D7CC for ; Wed, 13 Mar 2013 10:17:44 +0000 (UTC) Received: (qmail 84849 invoked by uid 500); 13 Mar 2013 10:17:44 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 84808 invoked by uid 500); 13 Mar 2013 10:17:43 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 84731 invoked by uid 99); 13 Mar 2013 10:17:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Mar 2013 10:17:41 +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 covener@gmail.com designates 209.85.212.51 as permitted sender) Received: from [209.85.212.51] (HELO mail-vb0-f51.google.com) (209.85.212.51) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Mar 2013 10:17:36 +0000 Received: by mail-vb0-f51.google.com with SMTP id fq11so383474vbb.38 for ; Wed, 13 Mar 2013 03:17:15 -0700 (PDT) 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=HzXiLzF5TVV/VfNPlsmdCNM+O1XyDv6+7lR5G/skJO8=; b=At/GqxhI62M1vgsGoZC5K8gn20yt8PQ+rApR5+aUyHVc81+KCBF0Uuvun7EjYuZ243 0y8fzMhcrdcF9LH13oYTPr3xMppFqWMTZCS7RlaaUKpx4nxW6BolfLc6XC76DcbdQ5aA oTICR3QNi3+czTByC5X+jTRq6fyoEn8mQyl5kkgF3AQh7QRmcDqyi3hpDGFnaqZpKUzs s9KbW+Jas976qu4ZqnHNW8tg4vkBIAB3blAZI89ThbVwKasAdL7sce4bxuPuozTdzwM0 VAM2jN0sbQPblMEhNiPNpMVyVYKvDfHnPaJkfifeY8iwYjw+c5X67xxQv9RzohMd/485 RdvA== MIME-Version: 1.0 X-Received: by 10.52.233.225 with SMTP id tz1mr798727vdc.54.1363169835254; Wed, 13 Mar 2013 03:17:15 -0700 (PDT) Received: by 10.58.234.5 with HTTP; Wed, 13 Mar 2013 03:17:15 -0700 (PDT) In-Reply-To: References: <1362441006.68134.YahooMailNeo@web160305.mail.bf1.yahoo.com> <1362451213.32498.YahooMailNeo@web160306.mail.bf1.yahoo.com> <1362453190.81878.YahooMailNeo@web160305.mail.bf1.yahoo.com> <1362601843.6153.YahooMailNeo@web160301.mail.bf1.yahoo.com> <5137A86E.3090803@cord.dk> <1362604885.95981.YahooMailNeo@web160303.mail.bf1.yahoo.com> <51384B43.3060905@beamartyr.net> <1362770183.3937.YahooMailNeo@web160301.mail.bf1.yahoo.com> <513C4A37.70004@beamartyr.net> <1363031249.10194.YahooMailNeo@web160301.mail.bf1.yahoo.com> <1363118657.7869.YahooMailNeo@web160305.mail.bf1.yahoo.com> Date: Wed, 13 Mar 2013 06:17:15 -0400 Message-ID: Subject: Re: ap_log_rerror limit size From: Eric Covener To: modules-dev@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Mar 13, 2013 at 6:16 AM, Eric Covener wrote: > On Wed, Mar 13, 2013 at 6:01 AM, Hoang Vu Dang wrote: >> Hi guys, >> >> Is there any limit of the size of a message log entry? How to control this ? >> >> I did this: >> >> ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, f->r, >> "%s", buffer); >> >> And the buffer was truncated on the error log. I check the strlen of the buffer and it was about 320K, and I got only around: ~ 8KB > > If it's more than PIPE_BUF, it won't be atomic and can be interleaved > with other entries. Are you sure it's truncated and not just spread > out? Er if using a piped logger that is.