def METHOD_NAME(self, batch):
    entries = [self.prefix + self.batch_fmtstr.format(batch)]
    entries += [str(meter) for meter in self.meters]
    log_str = '\t'.join(entries)
    print(log_str)
    if self.filepath is not None:
        with open(self.filepath, "a") as f:
            f.write(log_str+"\n")