One solution (although I'm not sure about the performance impacts) would be to create loggers that are children of the class logger. For example if you had a class 'Bar' in package 'foo', the your logger for the class would be ' foo.Bar'. If Bar has a method bar() and baz() you could create a loggers ' foo.Bar.bar' and 'foo.Bar.baz' that could each have their own level.
On 10/11/07, orko <[EMAIL PROTECTED]> wrote: > > Hi all, > I am trying to implement log4j for my application. I can set the logger to > class level. But, is it possible to set logger for a particular method under > a class (I/user may not need to view all the logs from different methods)? > Thanks in advance, > > -Orko >
