code: public void enableJdbcLogging(WSManagedConnectionFactoryImpl mcf) throws ResourceException {
          // in the Generic case (internalGeneric) just pass the pw
  
          PrintWriter pw = getPrintWriter(); 
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
              Tr.debug(tc, "enabling logging", mcf, pw);
          mcf.reallySetLogWriter(pw); 
          mcf.loggingEnabled = true;
      }
docs: This method is used to enable jdbc logging. The boundaries by which the method may be called: <br>
  <li> when creating the connection </li>
  The way jdbc logging is enabled will vary from one backend to another; some will be enabled
  on the connection, some will be enabled on the system as a whole, and others will be on the datasource.
  
  @param mc WSRdbManagedConnectionImpl
  @exception ResourceException