def METHOD_NAME(self, record):
    properties = {
        'Process': record.processName,
        'Module': record.module,
        'FileName': record.filename,
        'LineNumber': record.lineno,
        'Level': record.levelname,
        'Policy': self.policy_name,
        'SubscriptionId': self.subscription_id,
        'ResType': self.resource_type,
        'ExecutionId': self.execution_id
    }
    if hasattr(record, 'properties'):
        properties.update(record.properties)
    if record.exc_info:
        self.client.track_exception(*record.exc_info, properties=properties)
        return
    self.client.track_trace(record.msg, properties=properties, severity=record.levelname)