title: Tensorflow suppresses logging messages bug
body: <p>Tensorflow makes logging messages hide and not appear when I run the code.</p>
  
  <p>I have tried the following stuff but couldn't find a way to make my code work.</p>
  
  <pre><code>import logging
  logger = tf.get_logger()
  logger.setLevel(logging.ERROR)
  
  
  import os
  import tensorflow as tf
  
  os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
  </code></pre>
  
  <p>So my code is the following</p>
  
  <pre><code>import logging
  import tensorflow as tf
  
  logging.basicConfig(filename='example.log', level=logging.DEBUG)
  logging.debug('This message should go to the log file')
  logging.info('So should this')
  logging.warning('And this, too')
  </code></pre>
  
  <p>I expected to have the debug messages into my file example.log but nothing appeared inside example log.
  When I import tensorflow, the messages don't appear and when I don't they do.</p>
  
  <p>I need to use both tensorflow and logging because I use an existing code. Is there a way so logging suppresses Tensorflow?</p>