def METHOD_NAME(self, filename):
    """Set the filename, and a logger derived from it.
    The main refactoring tool should call this.
    """
    self.filename = filename
    self.logger = logging.getLogger(filename)