docs: def log(self, msg, error=False):
          """Log message helper."""
          output = self.stdout
          if error:
              output = self.stderr
  
          output.write(msg)
          output.write('\n')