code: @Deprecated // Android-added, also changed deprecation comment to include a reason.
      public static void setLogStream(java.io.PrintStream out) {
  
          SecurityManager sec = System.getSecurityManager();
          if (sec != null) {
              sec.checkPermission(SET_LOG_PERMISSION);
          }
  
          logStream = out;
          if ( out != null )
              logWriter = new java.io.PrintWriter(out);
          else
              logWriter = null;
      }
docs: Sets the logging/tracing PrintStream that is used
  by the <code>DriverManager</code>
  and all drivers.
  <P>
  In the Java 2 SDK, Standard Edition, version 1.3 release, this method checks
  to see that there is an <code>SQLPermission</code> object before setting
  the logging stream.  If a <code>SecurityManager</code> exists and its
  <code>checkPermission</code> method denies setting the log writer, this
  method throws a <code>java.lang.SecurityException</code>.
  
  @param out the new logging/tracing PrintStream; to disable, set to <code>null</code>
  @deprecated Use {@code setLogWriter} instead.
  @throws SecurityException if a security manager exists and its
  <code>checkPermission</code> method denies setting the log stream
  
  @see SecurityManager#checkPermission
  @see #getLogStream