Return-Path: Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 62811 invoked by uid 500); 4 Mar 2003 00:00:37 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 62798 invoked from network); 4 Mar 2003 00:00:36 -0000 Content-Type: text/plain; charset="us-ascii" From: "Philip M. Gollucci" Organization: eJournalPress To: dev@httpd.apache.org Subject: modules/loggers Date: Mon, 3 Mar 2003 19:00:38 +0000 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200303031900.38501.philip@p6m7g8.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I working on write mod_log_db=20 for apache2 It basically is going to do what mod_log_sql does for apache 1.x.x Except with webinterfaces and multiple database backends. However, I want the LogFormat parsing that mod_log_config provides. Is there any documentation on re-using this rather then redoing it like=20 mod_log_sql did ? I think that I what I'm looking for is mod_logio ? static int logio_pre_config(apr_pool_t *p, apr_pool_t *plog, apr_pool_t=20 *ptemp) { static APR_OPTIONAL_FN_TYPE(ap_register_log_handler) *log_pfn_registe= r; =20 log_pfn_register =3D APR_RETRIEVE_OPTIONAL_FN(ap_register_log_handler= ); =20 if (log_pfn_register) { log_pfn_register(p, "I", log_bytes_in, 0); log_pfn_register(p, "O", log_bytes_out, 0); } =20 return OK; } =20 While I'm thinking about it, this reallly seems like something a lot of=20 modules could want. Are there any plans on abstracting this out of=20 mod_log_config to maybe an apr/apr-utll set of functions ? I might be=20 interested in doing it if there is interest. Thanks for the continued help. END=20 -------------------------------------------------------------------------= -----=20 Philip M. Gollucci philip@p6m7g8.com 301.474.9294 301.646.3011 (cell)=20 Science, Discovery, & the Universe (UMCP)=20 Webmaster & Webship Teacher=20 URL: http://www.sdu.umd.edu=20 eJournalPress=20 Database/PERL Programmer & System Admin=20 URL : http://www.ejournalpress.com=20 Resume : http://p6m7g8.net/Resume=20