def METHOD_NAME(self, s, caller=None, logfile=None):
    self.__open_logfile()
    if caller is None:
        caller = inspect.stack()[1]
    self._print('# {{{0}}}: {1}'.format(caller[3], s), logfile=logfile)
    self.flush()