class_docstr: Classify, map source, and parse a raw record into its declared type.
class_docstr_tok: ["Classify",",","map","source",",","and","parse","a","raw","record","into","its","declared","type","."]
docstr: Log the contents of bad records to output so they can be handled
  
  Args:
      payload_record (PayloadRecord): PayloadRecord instance that, when logged to output,
          prints some information that will be helpful for debugging bad data
      invalid_record_count (int): Number of invalid records to increment the count by
docstr_tok: ["Log","the","contents","of","bad","records","to","output","so","they","can","be","handled","Args",":","payload_record","(","PayloadRecord",")",":","PayloadRecord","instance","that",",","when","logged","to","output",",","prints","some","information","that","will","be","helpful","for","debugging","bad","data","invalid_record_count","(","int",")",":","Number","of","invalid","records","to","increment","the","count","by"]
code: def _log_bad_records(self, payload_record, invalid_record_count):
      """Log the contents of bad records to output so they can be handled
  
      Args:
          payload_record (PayloadRecord): PayloadRecord instance that, when logged to output,
              prints some information that will be helpful for debugging bad data
          invalid_record_count (int): Number of invalid records to increment the count by
      """
      if not invalid_record_count:
          return  # don't log anything if the count of invalid records is not > 0
  
      LOGGER.error(
          "Record does not match any defined schemas: %s",
          payload_record,
      )
  
      self._failed_record_count += invalid_record_count
  
imports: from collections import OrderedDict
  import os
  import logging
  from streamalert.classifier.clients import SQSClient
  from streamalert.shared.firehose import FirehoseClient
  from streamalert.classifier.parsers import get_parser
  from streamalert.classifier.payload.payload_base import StreamPayload
  from streamalert.shared import config, CLASSIFIER_FUNCTION_NAME
  from streamalert.shared.artifact_extractor import ArtifactExtractor
  from streamalert.shared.exceptions import ConfigError
  from streamalert.shared.logger import get_logger
  from streamalert.shared.metrics import MetricLogger
  from streamalert.shared.normalize import Normalizer
label_desc: Use image node_id 10 for calling the Classifier obj's underlying member method code with example usage: obj._log_bad_records(payload_record, invalid_record_count) without return types