@Override
  public void setLogWriter(java.io.PrintWriter out) throws SQLException {
    dataSourcePW = out;
  }
sets the log writer for the datasource.

@param out PrintWriter for writing the logs.
geode-core/src/main/java/org/apache/geode/internal/datasource/AbstractDataSource.java