This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have been reading an online tutorial about the Java Logging API.
I found the tutorial to be helpful, but I am having difficulty with the concept of the logger hierarchy:
Specifically, I have two classes, which I have placed in the same package:
The LoggingConfigClass, as the name suggests, configures a logger and a console handler. It displays both messages. This class works as I anticipated.
The LoggingTestClass has a logger, which has no explicit configuration. I want to take advantage of the logger hierarchy (it should behave in the same way as the logger in LoggingConfig class). This does not happen despite the fact that I have been careful about how I named the logger in each class (which I think is the deciding factor in using logging hieriarchy???).
Could somebody please point out where I have gone wrong...?