public LocationInfo getLocationInfo ( Class wrapperClassName ) { LocationInfo locationInfo = null ; try { if ( stackLocal . get ( ) == null ) { stackLocal . set ( this . getStackTraceElement ( wrapperClassName ) ) ; } locationInfo = new LocationInfo ( stackLocal . get ( ) . getFileName ( ) , stackLocal . get ( ) . getClassName ( ) , stackLocal . get ( ) . getMethodName ( ) , stackLocal . get ( ) . getLineNumber ( ) + "" ) ; } catch ( Throwable e ) { if ( CONFIGURATION . shouldPrintLoggingErrors ( ) ) { e . printStackTrace ( ) ; } } return locationInfo ; }
Get the location information of the calling class