private String getCallingClassName ( ) { StackTraceElement [ ] stack = ( new Throwable ( ) ) . getStackTrace ( ) ; String className = stack [ 4 ] . getClassName ( ) ; if ( className == null || ! ( className . startsWith ( "com.centurylink" ) || className . startsWith ( "com.qwest" ) ) ) { className = stack [ 3 ] . getClassName ( ) ; // try next level up if ( className == null || ! ( className . startsWith ( "com.centurylink" ) || className . startsWith ( "com.qwest" ) ) ) { selfLogger . debug ( "Unfamiliar Log4J Logger: '" + className + "'; using Default '" + DEFAULT_LOGGER_NAME + "'" ) ; className = DEFAULT_LOGGER_NAME ; } } return className ; }
Get the name of the class to use as the Logger name