I forgot to mention that version 1.2 is supporting a new "mapped diagnostic context" (MDC) that allows you to attach data to the log message in key/value pairs. This is different than the NDC which implements a stack. You may want to consider using MDC instead of NDC as it is more flexible and modern.
Again, you can write your filter to take action on a keys value. -Mark > -----Original Message----- > From: Mark Womack > Sent: Thursday, April 11, 2002 1:31 PM > To: 'Log4J Users List' > Subject: RE: User filter > > > You will need to write your own filter class to filter > messages based on the > contents of the NDC. It is really easy to write your own > filter. See the > javadoc api documentation and the source code for examples. > > This particular filter has been asked for so many times, I > think someone > should just write one and submit it to the dev list. I don't > know when I'll > have time in the near future, but maybe this weekedn or early > next week. > There are probably a lot of useful filters that could be > submitted to the > dev list for possible inclusion in a future version. If > anyone out there > thinks they have one, consider submitting it. > > -Mark > > > -----Original Message----- > > From: Raúl Carazo [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, April 11, 2002 12:17 AM > > To: Log4J Users List > > Subject: User filter > > > > > > I'm thinking on filtering with the logger user , I mean. > > I can set the user with the NDC, but I can filter the logs > > with any user?? Or I should set the user in another way?? > > > > Thank you!!! > > > > > > ----------------------------------------------------------------- > > Raúl Carazo ( [EMAIL PROTECTED] ) > > Bilbomática S.A. > > Licenciado Poza 55 4 planta > > Tel. 94.427.63.08 > > Fax 94.427.15.47 > > 48013 BILBAO > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>