title: How to extend Class with module in Python?
body: <p>I'm trying to extend a class with logging module. Here is my code:</p>
  <pre><code>import logging
  
  class Log:
      def __init__(self):
          logging.basicConfig(level=logging.DEBUG, filename='mylogs.log', filemode='w', format='%(asctime)s - %(levelname)s - %(message)s')
  </code></pre>
  <p>And I want to call something like this:</p>
  <pre><code>from core import Log
  
  Log.info(&quot;Information Log&quot;)
  Log.debug(&quot;Debug Log&quot;)
  </code></pre>
  <p>In English, I want to use all of the <code>logging</code> module functions with my <code>Log</code> class. How can I do it?</p>