Details
-
Improvement
-
Resolution: Unresolved
-
None
-
1.7.x
-
None
-
Operating System: Mac OS X 10.3
Platform: PC
-
enhancement
-
P5
-
306
Description
This is a handy shortcut to get a logger for the containing class without having to worry about classname when moving / refactoring a class or having boilerplate classes that can be cloned.
public static XLogger getXLogger()
{ return getXLogger(Thread.currentThread().getStackTrace()[2].getClassName()); }