Cool! Stay in touch: ideas are always welcome!

On Fri, Nov 24, 2017 at 3:41 AM, Enric Jaen <[email protected]>
wrote:

> I will try it and let you know
> best regards
> Enric
>    En jueves, 23 de noviembre de 2017 12:37:25 GMT, Remko Popma <
> [email protected]> escribió:
>
>  You know, I think we may already have something very similar...
> Take a look at the second example under Map Filter:
> https://logging.apache.org/log4j/2.x/manual/filters.html#MapFilter
>
> If you use a RegexFilter (
> https://logging.apache.org/log4j/2.x/manual/filters.html#RegexFilter)
> would
> that meet your requirements?
>
> Remko
>
>
> On Thu, Nov 23, 2017 at 9:14 PM, Enric Jaen <[email protected]>
> wrote:
>
> > Hi, Sometimes it happens that we want to see logs from a class, but not
> > all logs as it can be verbose. I think it would useful to be able to
> filter
> > logs inside a logger, specially when the logger is class.
> >
> > For example we could use include and exclude regexps:
> >
> >
> >        <logger name=" org.springframework.beans.factory.support.
> DefaultListableBeanFactory"
> > level="DEBUG">            <include string= "Creating shared instance of
> > singleton bean"            <AppenderRef ref="PROJECT" />
> >        </logger>
> >
> > or
> >        <logger name=" org.springframework.beans.factory.support.
> DefaultListableBeanFactory"
> > level="DEBUG">            <exclude string= "Returning cached instance"
> >            <AppenderRef ref="PROJECT" />
> >        </logger>
> >
> > What do you think?Regards
> > Enric
> >
>
>

Reply via email to