'Set the filename, and a logger derived from it.
The main refactoring tool should call this.'

def set_filename(self, filename):

    self.filename = filename
    self.logger = logging.getLogger(filename)
