You can get that sort of behavior using an MDC based filters on various appenders. There was a thread about a week ago or so that suggested allowing for a custom class to be configured for a logger which would provide custom criteria to determine if a level is enabled. Of course, this is not reality at this point. Maybe Log4j-2.0.
Jake Quoting GoodOne <[EMAIL PROTECTED]>: > Thank you. But if I want to change the debug level in config file for all > EJBs across all functional partitions, would it be possible if i use MDC > values? > > > > On 10/25/06, James Stauffer <[EMAIL PROTECTED]> wrote: > > > > One good option: use loggers based on the class name as normal and set > > MDC values for the technical and functional partitions. > > > > On 10/25/06, GoodOne <[EMAIL PROTECTED]> wrote: > > > Hello All, > > > This is my first posting so please bear with me. > > > > > > I am using log4j and I would like to log based on technical and > > functional > > > partitions of the application so that I can filter logs later. > > > So technical partition would include EJB, Persistence, Servlet, > > BusinessTier > > > etc while functional partition could include > > > Accounts,Servicing,Plan,Infrastructure etc. > > > > > > One idea is I could take a cartesian product as categories. > > > Any other ideas are welcome. > > > > > > Thank you. > > > The Good one. > > > > > > > > > > > > -- > > James Stauffer http://www.geocities.com/stauffer_james/ > > Are you good? Take the test at http://www.livingwaters.com/good/ > > > > --------------------------------------------------------------------- > > 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]
