You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by Assaf Lavie <as...@gmail.com> on 2009/05/18 15:07:32 UTC
Is it possible to configure appenders per log level?
Hi,
Is it possible to configure the log in such a way that, for example, errors
reach all appenders (e.g. file, console) but DEBUG only reaches some
appenders (e.g. only console)?
Thanks,
Assaf
Re: Is it possible to configure appenders per log level?
Posted by "Jacob L. Anawalt" <ja...@geckosoftware.com>.
On 2009-05-18 07:21, Assaf Lavie wrote:
> Thanks.I didn't know I could set the level on an appender.
> What's the syntax for that in the config file? (I couldn't find it in the
> docs)
>
The simplest document is the short introduction on the project's main page. The
most complete is the log4j manual. Hopefully the wiki can grow to be somewhere
in the middle. I often use the Find page and then choose TitleIndex. The page on
Appender talks a little about thresholds and gives a property format example.
http://wiki.apache.org/logging-log4cxx/Appender
--
Jacob Anawalt
Gecko Software, Inc.
janawalt@geckosoftware.com
435-752-8026
Re: Is it possible to configure appenders per log level?
Posted by Assaf Lavie <as...@gmail.com>.
Thanks.I didn't know I could set the level on an appender.
What's the syntax for that in the config file? (I couldn't find it in the
docs)
On Mon, May 18, 2009 at 4:18 PM, Curt Arnold <ca...@apache.org> wrote:
> Set the level on the root logger to DEBUG (so all appenders see DEBUG and
> higher logging requests) and the threshold on some appenders to ERROR so
> they discard logging requests below ERROR.
>
>
>
> On May 18, 2009, at 8:07 AM, Assaf Lavie wrote:
>
> Hi,
>>
>> Is it possible to configure the log in such a way that, for example,
>> errors reach all appenders (e.g. file, console) but DEBUG only reaches some
>> appenders (e.g. only console)?
>>
>> Thanks,
>> Assaf
>>
>
>
Re: Is it possible to configure appenders per log level?
Posted by Curt Arnold <ca...@apache.org>.
Set the level on the root logger to DEBUG (so all appenders see DEBUG
and higher logging requests) and the threshold on some appenders to
ERROR so they discard logging requests below ERROR.
On May 18, 2009, at 8:07 AM, Assaf Lavie wrote:
> Hi,
>
> Is it possible to configure the log in such a way that, for example,
> errors reach all appenders (e.g. file, console) but DEBUG only
> reaches some appenders (e.g. only console)?
>
> Thanks,
> Assaf