TrackerSB / Green2

GNU General Public License v3.0
0 stars 0 forks source link

Replace Logger.getLogger(...) calls with static final field #144

Closed TrackerSB closed 6 years ago

TrackerSB commented 6 years ago

When moving snippets from one class to another class (maybe a new one) also the calls to Logger.getLogger(...) are copied. So one have to recognize to change the classname used in the call to the classname of the class the snippet was moved to. When this issue is getting closed, #120 may also be closed. References: https://stackoverflow.com/questions/6653520/why-do-we-declare-loggers-static-final https://www.slf4j.org/faq.html#declared_static https://wiki.apache.org/commons/Logging/FrequentlyAskedQuestions

TrackerSB commented 6 years ago

Further when calling Logger.getLogger(SomeClass.class.getName()) within a constructor an overridable method is called - namely Class#getName().