<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _log(self, content):
 """ Write a string to the log """

        self._buffer += content
        if self._auto_flush:
            self.flush()