On Fri, Jun 14, 2013 at 9:20 AM, Ralph Goers <[email protected]>wrote:
> Because this.getClass().getName() doesn't work. > > When searching for the class in the stack AbstractLogger is what will show > up since that is where the method is defined. > Uh, no, getClass() returns the class of the receiving object, not the class of where it is compiled. Gary > > Ralph > > On Jun 14, 2013, at 5:57 AM, Gary Gregory wrote: > > Hi All: > > Why is org.apache.logging.log4j.spi.AbstractLogger.FQCN defined as: > > private static final String FQCN = AbstractLogger.class.getName(); > > instead of: > > private final String FQCN = this.getClass().getName(); > > Gary > > -- > E-Mail: [email protected] | [email protected] > Java Persistence with Hibernate, Second > Edition<http://www.manning.com/bauer3/> > JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> > Spring Batch in Action <http://www.manning.com/templier/> > Blog: http://garygregory.wordpress.com > Home: http://garygregory.com/ > Tweet! http://twitter.com/GaryGregory > > > -- E-Mail: [email protected] | [email protected] Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> Spring Batch in Action <http://www.manning.com/templier/> Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory
