title: retrieve output logfile value from logger
body: <p>i try to use python logging module to create a timed rotating handler to some sort cache to a file.</p>
  
  <p>eventually i need to know what is the cache file name.
  i cannot find any property in logger to retrieve it.</p>
  
  <p>so i create kind of monkey job to overload the logger for later retrieve.
  anybody know a better solution?</p>
  
  <pre><code>    def srvcacheconfig(**kwargs):
          srv_name = kwargs['server_name']
      #     cache_path = CACHEPATH
      #     ans=dict()
          cache_filename = srv_name+CACHE_EXT
          cache_logger = logging.getLogger(srv_name)
          cache_logger.propagate = False
  
          #monkey job
          cache_logger.cache_name = cache_filename
  
          cache_format = logging.Formatter("%(message)s")
      #     cache_handlers = logging.handlers.TimedRotatingFileHandler(cache_filename, when = 'midnight', backupCount = 366)
          cache_handlers = logging.handlers.TimedRotatingFileHandler(cache_filename, when = 'M', interval = 1, backupCount = 200)
  
          cache_handlers.setFormatter(cache_format)
          cache_logger.addHandler(cache_handlers)
  
  #       consoleHandler = logging.StreamHandler()
  #        cache_logger.addHandler(consoleHandler)
  
  
          cache_logger.setLevel(logging.DEBUG)
          return cache_logger
  </code></pre>
  
  <p>thank you very much</p>