You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Olivier Lamy <ol...@apache.org> on 2012/11/13 16:10:43 UTC

Only this level filter

Hi,
I'd like to use jansi and have different color per level.
So for this I wanted to have an appender per level.
Threshold filter doesn't help me a lot.
Any idea ?
Or I must create a UniqueLevelFilter ? (I can provide a patch)

Thanks,
--
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Re: Only this level filter

Posted by Gary Gregory <ga...@gmail.com>.
Hi Olivier,

I expanded support for this feature in trunk a couple of weeks ago. It will
be in beta3 if the current VOTE passes. In beta3, you can customize the
colors too and the default colors are nicer IMO.

If you are on beta2, you can still use the pattern layout with a
%highlight{pattern}, the default colors you are, IMO, not great.

Gary

On Tue, Nov 13, 2012 at 10:10 AM, Olivier Lamy <ol...@apache.org> wrote:

> Hi,
> I'd like to use jansi and have different color per level.
> So for this I wanted to have an appender per level.
> Threshold filter doesn't help me a lot.
> Any idea ?
> Or I must create a UniqueLevelFilter ? (I can provide a patch)
>
> Thanks,
> --
> Olivier Lamy
> Talend: http://coders.talend.com
> http://twitter.com/olamy | http://linkedin.com/in/olamy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>
>


-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory