def METHOD_NAME(self, filename=None):
    if filename is not None:
        filename = os.path.realpath(filename)
    if self._stroke_filename == filename:
        return
    assert filename != LOG_FILENAME
    self.info('set_stroke_filename(%s)', filename)
    self._stroke_filename = filename
    self._setup_stroke_logging()