ef METHOD_NAME(self):
  outputLevel = 2  if self.testPassed else 1
  for logEntry in self.test.log:
     if self.mcommand >= outputLevel:
        print('>Command: ' + logEntry.cmdstr)
     if self.mreturn >= outputLevel:
        print('>Return Code: ' + str(logEntry.output.returncode))
     if self.mstderr >= outputLevel:
        print('>Standard Error:\n' + logEntry.output.stderr.decode("utf-8"))
     if self.mstdout >= outputLevel:
        print('>StandardOutput:\n' + logEntry.output.stdout.decode("utf-8"))