From dev-return-16340-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Fri May 12 21:39:47 2006 Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 7537 invoked from network); 12 May 2006 21:39:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 May 2006 21:39:46 -0000 Received: (qmail 14677 invoked by uid 500); 12 May 2006 21:39:44 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 14634 invoked by uid 500); 12 May 2006 21:39:44 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 14623 invoked by uid 99); 12 May 2006 21:39:44 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 May 2006 14:39:44 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [68.142.198.204] (HELO smtp105.sbc.mail.mud.yahoo.com) (68.142.198.204) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 12 May 2006 14:39:43 -0700 Received: (qmail 92292 invoked from network); 12 May 2006 21:39:22 -0000 Received: from unknown (HELO ?192.168.10.100?) (curt.arnold@sbcglobal.net@72.181.12.112 with plain) by smtp105.sbc.mail.mud.yahoo.com with SMTP; 12 May 2006 21:39:22 -0000 Mime-Version: 1.0 (Apple Message framework v749.3) In-Reply-To: <4463119D.9080107@spamcop.net> References: <445FE273.4060202@spamcop.net> <445FF22B.1090305@ztune.net> <445FF8AA.7050800@spamcop.net> <4460087C.2080102@ztune.net> <4462BA16.5010600@spamcop.net> <4462F80F.2090108@ztune.net> <4463119D.9080107@spamcop.net> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Curt Arnold Subject: Re: Google Summer of Code Applications Submitted for apr-build-system and apr-logging Date: Fri, 12 May 2006 16:39:20 -0500 To: APR Developer List X-Mailer: Apple Mail (2.749.3) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Couple of comments on both proposals. First, I want you to be aware that log4cxx (http:// logging.apache.org) as a by-product can produce Visual Studio 6 project files for apr and apr-util sufficient for its own use through its use of cpptasks (http://ant-contrib.sourceforge.net) and Ant (http://ant.apache.org). If you get into that might save you some time trying to figure out the project file syntax. On the logging proposal, I see a decent amount of discussion regarding the Windows Event Log methods, but little regarding OutputDebugString or TraceEvent which a native Windows app would use to output debug level message or lower. The Event Log methods are way too expensive for diagnostic logging. I'd assume a typical Windows configuration would do something send info and higher messages to the Event Log and debug and lower severity messages to OutputDebugString or TraceEvent. I think the most desirable API for APR would mimic syslog but possibly add additional bitmasks for the logopt parameter to the apr_open_log method to correspond to different logging API's (like APR_LOG_DEBUGGER which would map to OutputDebugString on Win32 and NSLog on Mac OS/X). A platform specific logging API (like APR_LOG_EVENT_LOG) could be ignored on platforms where it wasn't meaningful.