Already considered to use MDC? i.e.:
MDC.put( "category_tech", "EJB" ) MDC.put( "category_func", "Plan" ) try { myLog.xxxxx } finally { MDC.remove( "category_tech" ); MDC.remove( "category_func" ); } The pattern can resolve this MDC values with the %X switch: %X{category_tech} %X{category_func} Heri > -----Original Message----- > From: GoodOne [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 25, 2006 6:54 PM > To: Log4J Users List > Subject: [SPAM (Bayesain Analysis)] - Logging "Cross Functional" > categories in log4j - Bayesian Filter detected spam > > > 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. > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]