title: Change default location log file generated by logger in python
body: <p>I am using logger in my python source code, and want  to create logs on specific location but <strong>python logging</strong> module creates the log files at the default place i.e. from where it is executed.</p>
  
  <p>Is there is any way to change this default location?</p>
  
  <p>below is my configuration </p>
  
  <pre><code>  import logging
    logger = logging.getLogger(__name__)
    logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(levelname)-8s %(message)s', datefmt='%a, %d %b %Y %H:%M:%S', filename='testGene.log, filemode='w')
  </code></pre>