title: Avoid `logger=logging.getLogger(__name__)`
body: <p>We set up logging like the django docs told us:</p>
  
  <p><a href="https://docs.djangoproject.com/en/2.1/topics/logging/#using-logging" rel="noreferrer">https://docs.djangoproject.com/en/2.1/topics/logging/#using-logging</a></p>
  
  <pre><code># import the logging library
  import logging
  
  # Get an instance of a logger
  logger = logging.getLogger(__name__)
  
  def my_view(request, arg1, arg):
      ...
      if bad_mojo:
          # Log an error message
          logger.error('Something went wrong!')
  </code></pre>
  
  <p>I want to avoid this line in every Python file which wants to log:</p>
  
  <p><code>logger = logging.getLogger(__name__)</code> </p>
  
  <p>I want it simple:</p>
  
  <p><code>logging.error('Something went wrong!')</code></p>
  
  <p>But we want to keep one feature: We want to see the Python file name in the logging output.</p>
  
  <p>Up to now we use this format:</p>
  
  <pre><code>'%(asctime)s %(name)s.%(funcName)s +%(lineno)s: %(levelname)-8s [%(process)d] %(message)s'
  </code></pre>
  
  <p>Example output:</p>
  
  <pre><code>2016-01-11 12:12:31 myapp.foo +68: ERROR Something went wrong
  </code></pre>
  
  <p>How to avoid <code>logger = logging.getLogger(__name__)</code>?</p>