title: Python logging; Unable to create log files
body: <p>I am trying to create a <code>logFile.log</code> using:</p>
  <pre><code>logging.basicConfig(filename='logFile.log', filemode = 'a', level=logging.ERROR, format='%(asctime)s:%(levelname)s:%(message)s')
  </code></pre>
  <p>However, I'm running into an OS-Error:</p>
  <pre><code>Traceback (most recent call last):
  File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
  File &quot;/Users/jaypuzhakkara/Documents/python projects/BOSAPI/demo1/demo1.py&quot;, line 28, in &lt;module&gt;
  logging.basicConfig(filename='logFile.log', filemode = 'a', level=logging.ERROR, format='%(asctime)s:%(levelname)s:%(message)s')
  File &quot;/Users/jaypuzhakkara/anaconda3/lib/python3.8/logging/__init__.py&quot;, line 1976, in basicConfig
  h = FileHandler(filename, mode)
  File &quot;/Users/jaypuzhakkara/anaconda3/lib/python3.8/logging/__init__.py&quot;, line 1143, in __init__
  StreamHandler.__init__(self, self._open())
  File &quot;/Users/jaypuzhakkara/anaconda3/lib/python3.8/logging/__init__.py&quot;, line 1172, in _open
  return open(self.baseFilename, self.mode, encoding=self.encoding)
  OSError: [Errno 30] Read-only file system: '/logFile.log'
  </code></pre>
  <p>If I explicitly provide a path to <em>filename=</em>, the error goes away, but I'd like to have the logFile.log created in the same dir where the script is placed. How do I achieve this?</p>