Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 27569 invoked from network); 24 Oct 2007 17:51:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Oct 2007 17:51:21 -0000 Received: (qmail 14839 invoked by uid 500); 24 Oct 2007 17:51:08 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 14804 invoked by uid 500); 24 Oct 2007 17:51:08 -0000 Mailing-List: contact log4net-user-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4NET User" List-Id: Delivered-To: mailing list log4net-user@logging.apache.org Received: (qmail 14771 invoked by uid 99); 24 Oct 2007 17:51:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Oct 2007 10:51:08 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of WaldenL@techsoftinc.com designates 216.150.133.132 as permitted sender) Received: from [216.150.133.132] (HELO ex2.techsoftwareinc.com) (216.150.133.132) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Oct 2007 17:51:09 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Newbie: Does Log4Net have the concept of "Topics" and, if so, can I route messages based on topic rather than "Class" hierarchy? X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Wed, 24 Oct 2007 13:50:48 -0400 Message-ID: <43A10173A6B4F54BACFACFB39EBD47550251FA@ex2.techsoftwareinc.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Newbie: Does Log4Net have the concept of "Topics" and, if so, can I route messages based on topic rather than "Class" hierarchy? Thread-Index: AcgWKkhwRS9jiZRaRs65DbTd388XCQAO9ZXw References: <13383219.post@talk.nabble.com> From: "Walden H. Leverich" To: "Log4NET User" X-Virus-Checked: Checked by ClamAV on apache.org Steve, If I understand correctly, just have multiple loggers. Perhaps the "per-class" logger for general diagnostics an trace, and then a more global "audit" logger you use to write your audit information. You could use different storage for the two or use the same storage. If you're using the same storage there is nothing special needed. If you want different storage you'd simply add an appender to the config file entry for the "audit" logger specifically. -Walden --=20 Walden H Leverich III Tech Software (516) 627-3800 x3051 WaldenL@TechSoftInc.com http://www.TechSoftInc.com Quiquid latine dictum sit altum viditur. (Whatever is said in Latin seems profound.) -----Original Message----- From: shaeney [mailto:stevehaeney@yahoo.co.uk]=20 Sent: Wednesday, October 24, 2007 6:40 AM To: log4net-user@logging.apache.org Subject: Newbie: Does Log4Net have the concept of "Topics" and, if so, can I route messages based on topic rather than "Class" hierarchy? The title says it all really, I would like to be able to route my messages based on a topic rather than the class that posts the message. For example, I have an audit requirement and a log requirement for the same class. When I start/stop a given job, I want to audit that, but I also want to record job progress within the class via logging. I see my audit and logging sinks as being different and backed by different storage. How can I model this in Log4Net? Also, is it possible to include meta data with the log message? I could do with appending an XML payload to be digested by the sink, if that's possible. Cheers, Steve --=20 View this message in context: http://www.nabble.com/Newbie%3A-Does-Log4Net-have-the-concept-of-%22Topi cs%22-and%2C-if-so%2C-can-I-route-messages-based-on-topic-rather-than-%2 2Class%22-hierarchy--tf4683548.html#a13383219 Sent from the Log4net - Users mailing list archive at Nabble.com.