Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 82911 invoked from network); 18 Aug 2008 19:23:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Aug 2008 19:23:15 -0000 Received: (qmail 63142 invoked by uid 500); 18 Aug 2008 19:23:12 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 63109 invoked by uid 500); 18 Aug 2008 19:23:12 -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 63098 invoked by uid 99); 18 Aug 2008 19:23:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Aug 2008 12:23:12 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcfreddy@gmail.com designates 72.14.220.154 as permitted sender) Received: from [72.14.220.154] (HELO fg-out-1718.google.com) (72.14.220.154) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Aug 2008 19:22:16 +0000 Received: by fg-out-1718.google.com with SMTP id d23so2154238fga.14 for ; Mon, 18 Aug 2008 12:22:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=drY/FQrLL6kEMWGX85zJyXOQAieNgkhJJ/KRBwBMygg=; b=jd48M9CaIRtlVkSfjS43/M15BuWjTAen0AKtEhzBd/VYkhsne/cEcKcovYJuL9lvgZ t5/md4J7W8X3my87Q/k4ubco7RaIc+dV2JcrVgktC16BmPPCjiDrOs9XuVsxGfAhcpMY 0AL9vlJjeoLZClNMvWqmHebsxPRk2l3dzUhZo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=rroeua3azs2wCkCNDBBVui1E/djpMprGWw3JbOa5wgOx+89vpVjrr5geaop/VKtHnv hQV9qHtMf/XnSFgpyLJWJjC/1Oy9klQi/8zEydpHTbrCanChbqP/2ThY8UjlkqiZoWOE YsXBuS+YaPxyaAofJvxKeKMBr8XglYlMjWjjE= Received: by 10.86.29.8 with SMTP id c8mr1870314fgc.30.1219087361228; Mon, 18 Aug 2008 12:22:41 -0700 (PDT) Received: by 10.86.27.14 with HTTP; Mon, 18 Aug 2008 12:22:41 -0700 (PDT) Message-ID: <8e99670d0808181222u7d1bae63h543b7753fd64f0eb@mail.gmail.com> Date: Mon, 18 Aug 2008 14:52:41 -0430 From: "=?ISO-8859-1?Q?Freddy_G=F3mez?=" To: "Log4NET User" Subject: Re: Can I limit the level for appender In-Reply-To: <744e79e40808181217s1f480663g2521184dc6887574@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_30325_7231145.1219087361223" References: <744e79e40808181217s1f480663g2521184dc6887574@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_30325_7231145.1219087361223 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline You could use two appenders with the same logger, each one with a LevelMatchFilter, so one appender writes to the database and the other writes to the console. -fred On Mon, Aug 18, 2008 at 2:47 PM, Vladimir Bodurov < vladimir.bodurov@gmail.com> wrote: > Hello, > > Can I limit the level for appender, for example if I want the errors to go > to database and the debug calls to Debug Output. > > Is this possible? > > Thank you in advance > > Vlad > ------=_Part_30325_7231145.1219087361223 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
You could use two appenders with the same logger, each one with a LevelMatchFilter, so one appender writes to the database and the other writes to the console.

-fred

On Mon, Aug 18, 2008 at 2:47 PM, Vladimir Bodurov <vladimir.bodurov@gmail.com> wrote:
Hello,
 
Can I limit the level for appender, for example if I want the errors to go to database and the debug calls to Debug Output.
 
Is this possible?
 
Thank you in advance
 
Vlad

------=_Part_30325_7231145.1219087361223--