code: def new_iteration(self, prefix):
          
          # Flush data for the current iteration
          self.flush()
  
          # Fix prefix
          self.prefix[-1] = prefix
          self.reset_formatter()
docs: When inside a loop logger, created a new iteration