code: def format(self, record):
          
          return {
              'timestamp': int(float(record.created or time.time()) * 1000),
              'message': record.msg or '',
              'level': record.levelname or 'DEBUG',
          }
docs: Format log record for ThreatConnect API.
  
          Example log event::
  
              [{
                  "timestamp": 1478907537000,
                  "message": "Test Message",
                  "level": "DEBUG"
              }]