Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 15248 invoked from network); 15 Sep 2006 13:58:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Sep 2006 13:58:06 -0000 Received: (qmail 52233 invoked by uid 500); 15 Sep 2006 13:58:00 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 52200 invoked by uid 500); 15 Sep 2006 13:58:00 -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 52151 invoked by uid 99); 15 Sep 2006 13:57:59 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Sep 2006 06:57:59 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [65.57.104.77] (HELO shared11.hostventures.com) (65.57.104.77) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Sep 2006 06:57:48 -0700 Received: (qmail 14958 invoked from network); 15 Sep 2006 09:57:22 -0400 Received: from h-68-167-148-211.mclnva23.covad.net (HELO ?127.0.0.1?) (68.167.148.211) by ns.hostventures.com with SMTP; 15 Sep 2006 09:57:21 -0400 Message-ID: <450AB148.4000304@proquobooks.com> Date: Fri, 15 Sep 2006 09:57:28 -0400 From: Dan Bress User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: log4net-user@logging.apache.org Subject: Different Log Level per Logger per Appender? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I am curious if log4net supports the concept of having the same appender associated with more than one Logger, but at different levels for each Logger. Example: Lets say I have Logger L1, and Logger L2 Lets say I have RollingFileAppender A1, and ConsoleAppender A2 Is it possible to configure log4net such that L1 and L2 both send debug or greater to A2 L1 sends error or greater to A1 L2 sends fatal or greater to A1 I suppose this can be done by declaring two nearly identical instances of the rolling file appender, and setting a different level evaluator for each, but this seems like unnecessary duplication. I am coming from the log4j world where I though this feature was supported, but i could be wrong... Thanks, Dan