Well, this was pleasantly simple, no need for anyone to reply to this now.
If you are having problems with this same thing, just try modifying
org.apache.log4j.varia.PriorityMatchFilter.  And instead of matching on
priority just match on an attribute in your own version of LoggingEvent.
Now on to extending priorities!

Alan Robertson wrote:

> Hey all,
>
> Sorry to bug you all with another question, but I'm heading towards a
> deadline.  I'm looking into how I can filter log messages based on an
> attribute of my own making.  This would be similar to filtering on the
> 'hostname' attribute of the AppServer example.  If anyone has an example
> of the Filter object I need to create to do this, and how to use it
> properly in my xml config file, I would greatly appreciate it.
>
> Thanks,
> Alan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to