<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_filename(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)