title: how to pass object's function name as a parameter
body: <p>What I am trying to do is something like this:</p>
  
  <pre><code>def custom_logger(user_logger, log_level, *args, **kwargs):    
      # do some stuff..
      user_logger.log_level(*args, **kwargs)
  </code></pre>
  
  <p>or like this:</p>
  
  <pre><code>def create_logger(module_name, log_level=DEBUG):
      logger = logging.getLogger(module_name)
      logger.setLevel(logging.log_level)
  </code></pre>
  
  <p>How can I achieve something like this? Because it will clean up a lot of things.</p>