<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_debug(self, status):
 """Control the logging state."""

        if status:
            self.logger.setLevel('DEBUG')
        else:
            self.logger.setLevel('INFO')