title: Problem with Logging Module in Google Colab
body: <p>I have a python script with an error handling using the logging module. Although this python script works when imported to google colab, it doesn't log the errors in the log file. </p>
  
  <p>As an experiment, I tried this following script in google colab just to see if it writes log at all</p>
  
  <pre><code>import logging
  logging.basicConfig(filename="log_file_test.log",
                              filemode='a',
                              format='%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s',
                              datefmt='%H:%M:%S',
                              level=logging.DEBUG)
  
  logging.info("This is a test log ..")
  </code></pre>
  
  <p>To my dismay, it <strong>didn't even create</strong> a log file named <strong>log_file_test.log</strong>. I tried running the same script <strong>locally</strong> and it <strong>did produce</strong> a file <strong>log_file_test.log</strong> with the following text </p>
  
  <blockquote>
    <p>13:20:53,441 root INFO This is a test log ..</p>
  </blockquote>
  
  <p>What is it that I am missing here?
  For the time being, I am replacing the error logs with print statements, but I assume that there must be a workaround to this. </p>