title: Naming Python loggers
body: <p>In Django, I've got loggers all over the place, currently with hard-coded names.</p>
  
  <p>For module-level logging (i.e., in a module of view functions) I have the urge to do this.</p>
  
  <pre><code>log = logging.getLogger(__name__)
  </code></pre>
  
  <p>For class-level logging (i.e., in a class <code>__init__</code> method) I have the urge to do this.</p>
  
  <pre><code>self.log = logging.getLogger("%s.%s" % (
      self.__module__, self.__class__.__name__))
  </code></pre>
  
  <p>I'm looking for second opinions before I tackle several dozen occurrences of <code>getLogger("hard.coded.name")</code>.</p>
  
  <p>Will this work?  Anyone else naming their loggers with the same unimaginative ways?  </p>
  
  <p>Further, should I break down and write a class decorator for this log definition?</p>