@ Override public java . util . logging . Logger getParentLogger ( ) throws SQLFeatureNotSupportedException { //return driver.getParentLogger(); Method m = null ; try { m = driver . getClass ( ) . getMethod ( "getParentLogger" ) ; } catch ( Throwable e ) { throw new SQLFeatureNotSupportedException ( ) ; } if ( m != null ) { try { return ( java . util . logging . Logger ) m . invoke ( m ) ; } catch ( IllegalAccessException | IllegalArgumentException | InvocationTargetException ex ) { LOGGER . trace ( "" , ex ) ; } } throw new SQLFeatureNotSupportedException ( ) ; }
Wraps the call to the underlying driver s getParentLogger method .