title: How to avoid root handler being called from the custom logger in Python?
body: <p>I have a basic config for the logging module with debug level - now I want to create another logger with error level only. How can I do that?</p>
  <p>The problem is that the root handler is called in addition to the error-handler - this is something I want to avoid.</p>
  <pre><code>import logging
  fmt = '%(asctime)s:%(funcName)s:%(lineno)d:%(levelname)s:%(name)s:%(message)s'
  logging.basicConfig(level=logging.DEBUG, format=fmt)
  
  logger = logging.getLogger('Temp')
  logger.setLevel(logging.ERROR)
  handler = logging.StreamHandler()
  handler.setLevel(logging.ERROR)
  logger.addHandler(handler)
  
  logger.error('boo')
  </code></pre>
  <p>The above code prints boo twice while I expect once only, and I have no idea what to do with this annoying issue...</p>
  <pre><code>In [4]: logger.error('boo')
  boo
  2021-04-26 18:54:24,329:&lt;module&gt;:1:ERROR:Temp:boo
  
  In [5]: logger.handlers
  Out[5]: [&lt;StreamHandler stderr (ERROR)&gt;]
  </code></pre>