<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def addLogForRemoteCommands(self, logname):
 """This method must be called by user classes composite steps could create several logs, this mixin functions will write to the last one. """

        self.rc_log = self.addLog(logname)
        return self.rc_log