docs: public final PrintWriter getLogWriter() throws ResourceException {
          if (dataSourceOrDriver == null) {
              return logWriter;
          }
          try {
              if(!Driver.class.equals(type)) {
                  return ((CommonDataSource) dataSourceOrDriver).getLogWriter();
              }
              //Return null for Driver since that is the default value which can't be modified
              return null;
          } catch (SQLException se) {
              FFDCFilter.processException(se, getClass().getName(), "1656", this);
              throw AdapterUtil.translateSQLException(se, this, false, getClass());
          }
      }