title: Python Logging: How to pass logging level as an argument
body: <p>How can we pass logging level as an argument?</p>
  
  <p>For example:</p>
  
  <pre><code>level1 = 'DEBUG'
  level1lower = level1.lower()
  logger.setLevel(logging.level1)
  logger.level1lower('Some messages passed for logging's)
  </code></pre>
  
  <p>This is the closest representation of my problem coz I want to write one function that would take logging levels as argument.</p>