I was curious if someone could explain better why the Logger.getCategory() method is 
deprecated?  I know the code already has this comment in it:

This method violates Inversion of Control principle.  If you are relying on its 
presence then there may be something wrong with the design of your system

I am trying to determine at runtime what the category hierarchy looks like so that I 
can enable different levels of logging at each category.  From what I can tell, 
walking through the logger hierarchy and getting the category name of each Logger 
seemed to be the way to do it.  Since getCategory() is deprecated, can anyone suggest 
how I can accomplish this?

Also, since I am asking questions, how do you turn off logging completely for a 
category?  Would you just set the priority to FATAL_ERROR?

Thanks for the help.
Tony


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

Reply via email to