Backport GEOS-6416

Backporting fix/mitigation of GEOS-6416.  Reconfigures logging if necessary once JDBCConfig is available.