code: def get_email_logs(self):
          '''
          Returns a string representation of logs.
  
          Only displays errors and warnings in the email logs
          to avoid being verbose
          '''
          message = ""
          for log in self.record:
              if log["log_type"] in [ERROR, WARNING]:
                  message += self.format_message(**log)
  
          return messagf get_email_logs(self):
          '''
          Returns a string representation of logs.
  
          Only displays errors and warnings in the email logs
          to avoid being verbose
          '''
          message = ""
          for log in self.record:
              if log["log_type"] in [ERROR, WARNING]:
                  message += self.format_message(**log)
  
          return message
docs: Returns a string representation of logs.
  
          Only displays errors and warnings in the email logs
          to avoid being verbose