:doc:`ManagedintegrationsforIoTDeviceManagement <../../iot-managed-integrations>` / Client / put_runtime_log_configuration

*****************************
put_runtime_log_configuration
*****************************



.. py:method:: ManagedintegrationsforIoTDeviceManagement.Client.put_runtime_log_configuration(**kwargs)

  

  Set the runtime log configuration for a specific managed thing.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iot-managed-integrations-2025-03-03/PutRuntimeLogConfiguration>`_  


  **Request Syntax**
  ::

    response = client.put_runtime_log_configuration(
        ManagedThingId='string',
        RuntimeLogConfigurations={
            'LogLevel': 'DEBUG'|'ERROR'|'INFO'|'WARN',
            'LogFlushLevel': 'DEBUG'|'ERROR'|'INFO'|'WARN',
            'LocalStoreLocation': 'string',
            'LocalStoreFileRotationMaxFiles': 123,
            'LocalStoreFileRotationMaxBytes': 123,
            'UploadLog': True|False,
            'UploadPeriodMinutes': 123,
            'DeleteLocalStoreAfterUpload': True|False
        }
    )
    
  :type ManagedThingId: string
  :param ManagedThingId: **[REQUIRED]** 

    The id for a managed thing.

    

  
  :type RuntimeLogConfigurations: dict
  :param RuntimeLogConfigurations: **[REQUIRED]** 

    The runtime log configuration for a managed thing.

    

  
    - **LogLevel** *(string) --* 

      The different log levels available for configuration.

      

    
    - **LogFlushLevel** *(string) --* 

      The different log levels available for configuration.

      

    
    - **LocalStoreLocation** *(string) --* 

      Configuration of where to store runtime logs in the device.

      

    
    - **LocalStoreFileRotationMaxFiles** *(integer) --* 

      Configuration to set the maximum number of runtime log files that can be stored on the device before the oldest files are deleted or overwritten.

      

    
    - **LocalStoreFileRotationMaxBytes** *(integer) --* 

      Configuration to set the maximum bytes of runtime logs that can be stored on the device before the oldest logs are deleted or overwritten.

      

    
    - **UploadLog** *(boolean) --* 

      Configuration to enable or disable uploading of runtime logs to the cloud.

      

    
    - **UploadPeriodMinutes** *(integer) --* 

      Configuration to set the time interval in minutes between each batch of runtime logs that the device uploads to the cloud.

      

    
    - **DeleteLocalStoreAfterUpload** *(boolean) --* 

      Configuration to enable or disable deleting of runtime logs in the device once uploaded to the cloud.

      

    
  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`ManagedintegrationsforIoTDeviceManagement.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`ManagedintegrationsforIoTDeviceManagement.Client.exceptions.ValidationException`

  
  *   :py:class:`ManagedintegrationsforIoTDeviceManagement.Client.exceptions.InternalServerException`

  
  *   :py:class:`ManagedintegrationsforIoTDeviceManagement.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`ManagedintegrationsforIoTDeviceManagement.Client.exceptions.ThrottlingException`

  