title: Python: How to save log file toSharePoint
body: <p>I currently have a log in my Python Script as follows:</p>
  
  <pre><code>logging.basicConfig(filename = 'C:\\Users\\Public\\Pilot_Log.txt', level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
  </code></pre>
  
  <p>Rather than saving the log file onto a user's local drive, I want to be able to save it straight onto a SharePoint. I tried something like this but it fails:</p>
  
  <pre><code>logging.basicConfig(filename = 'https:\\office2.xyz.com\\sites\\Test\\Shared Documents\\Pilot_Log.txt', level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
  </code></pre>
  
  <p>How can I save the log file straight onto a SharePoint?</p>