title: How to log to Kubernetes Container Log from Python process
body: <p>With Kubernetes Container running a Python script:</p>
  
  <pre><code>import time
  while True:
      try:
          for i in range(10):
              if i==0:
                  raise Exception('Exception occurred!')
      except:
          pass
      time.sleep(1)
  </code></pre>
  
  <p>I would like to pass the Exception's message <code>'Exception occurred!'</code> down to the Container so this error message could be seen with:</p>
  
  <p><code>kubectl describe pod pod_id</code></p>
  
  <p>Would it be possible?</p>