Return-Path: Delivered-To: apmail-logging-log4cxx-user-archive@www.apache.org Received: (qmail 72438 invoked from network); 4 Dec 2007 21:42:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Dec 2007 21:42:03 -0000 Received: (qmail 60057 invoked by uid 500); 4 Dec 2007 21:41:51 -0000 Delivered-To: apmail-logging-log4cxx-user-archive@logging.apache.org Received: (qmail 60043 invoked by uid 500); 4 Dec 2007 21:41:50 -0000 Mailing-List: contact log4cxx-user-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4CXX User" List-Id: Delivered-To: mailing list log4cxx-user@logging.apache.org Received: (qmail 60032 invoked by uid 99); 4 Dec 2007 21:41:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Dec 2007 13:41:50 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [213.164.7.135] (HELO mail.update.com) (213.164.7.135) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Dec 2007 21:41:30 +0000 Received: from mail.update.com (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id 60245DCADC for ; Tue, 4 Dec 2007 22:41:32 +0100 (CET) Received: from upex01.update.com (upex01.update.com [10.43.1.15]) by mail.update.com (Postfix) with ESMTP id 52591DCADA for ; Tue, 4 Dec 2007 22:41:32 +0100 (CET) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: multi-user logger Date: Tue, 4 Dec 2007 22:41:32 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: multi-user logger Thread-Index: Acg2vm9wiMUBxKJ4Sw+SPlxC4UBSlQ== From: "Christoph Macheiner" To: X-Virus-Checked: Checked by ClamAV on apache.org hi... i am currently trying to incorporate log4cxx into our multi-user software. basically it is working well, but there is demand for more extensive configuration (instead of our "fixed" configuration). the wish is as follows: each user can work with different modules and/or different logins, and all users/modules are serviced by one single process (the single user/module per process scenario would of course be no problem). assume, i want to use loggers named MODULE_NAME.USER_NAME that should be configured dynamically from a single configuration file (i use the domconfigurator). the problem is, for example, with file appenders. there can be hundreds of user/module combinations, but they can be grouped into a few different loggers that need to be parametrized at runtime (like filename should be MODULE_NAME.USER_NAME.log for one group, but only MODULE_NAME.log for others etc). the coolest thing would be to have the xml configuration file as a "template" and create all loggers at runtime from that template xml. then i could dynamically replace the filenames (etc) and/or reuse already configured loggers for users of the same group. i cannot really "hard-configure" all the loggers in the configuration file because, as i mentioned, there could possibly be hundreds of different files. so, is there a way to create all my loggers at runtime, from an xml document provided on the fly? or is there an easier solution... any help is greatly appreciated (and sorry for the long post). thanks very much, christoph.