IoTWireless / Client / get_log_levels_by_resource_types
get_log_levels_by_resource_types#
- IoTWireless.Client.get_log_levels_by_resource_types()#
Returns current default log levels or log levels by resource types. Based on resource types, log levels can be for wireless device log options or wireless gateway log options.
See also: AWS API Documentation
Request Syntax
response = client.get_log_levels_by_resource_types()
- Return type:
dict
- Returns:
Response Syntax
{ 'DefaultLogLevel': 'INFO'|'ERROR'|'DISABLED', 'WirelessGatewayLogOptions': [ { 'Type': 'LoRaWAN', 'LogLevel': 'INFO'|'ERROR'|'DISABLED', 'Events': [ { 'Event': 'CUPS_Request'|'Certificate', 'LogLevel': 'INFO'|'ERROR'|'DISABLED' }, ] }, ], 'WirelessDeviceLogOptions': [ { 'Type': 'Sidewalk'|'LoRaWAN', 'LogLevel': 'INFO'|'ERROR'|'DISABLED', 'Events': [ { 'Event': 'Join'|'Rejoin'|'Uplink_Data'|'Downlink_Data'|'Registration', 'LogLevel': 'INFO'|'ERROR'|'DISABLED' }, ] }, ], 'FuotaTaskLogOptions': [ { 'Type': 'LoRaWAN', 'LogLevel': 'INFO'|'ERROR'|'DISABLED', 'Events': [ { 'Event': 'Fuota', 'LogLevel': 'INFO'|'ERROR'|'DISABLED' }, ] }, ] }
Response Structure
(dict) –
DefaultLogLevel (string) –
The log level for a log message. The log levels can be disabled, or set to
ERROR
to display less verbose logs containing only error information, or toINFO
for more detailed logs.WirelessGatewayLogOptions (list) –
The list of wireless gateway log options.
(dict) –
The log options for wireless gateways and can be used to set log levels for a specific type of wireless gateway.
Type (string) –
The wireless gateway type.
LogLevel (string) –
The log level for a log message. The log levels can be disabled, or set to
ERROR
to display less verbose logs containing only error information, or toINFO
for more detailed logs.Events (list) –
The list of wireless gateway event log options.
(dict) –
The log options for a wireless gateway event and can be used to set log levels for a specific wireless gateway event.
For a LoRaWAN gateway, possible events for a log message are
CUPS_Request
andCertificate
.Event (string) –
The event for a log message, if the log message is tied to a wireless gateway.
LogLevel (string) –
The log level for a log message. The log levels can be disabled, or set to
ERROR
to display less verbose logs containing only error information, or toINFO
for more detailed logs.
WirelessDeviceLogOptions (list) –
The list of wireless device log options.
(dict) –
The log options for wireless devices and can be used to set log levels for a specific type of wireless device.
Type (string) –
The wireless device type.
LogLevel (string) –
The log level for a log message. The log levels can be disabled, or set to
ERROR
to display less verbose logs containing only error information, or toINFO
for more detailed logs.Events (list) –
The list of wireless device event log options.
(dict) –
The log options for a wireless device event and can be used to set log levels for a specific wireless device event.
For a LoRaWAN device, possible events for a log messsage are:
Join
,Rejoin
,Downlink_Data
, andUplink_Data
. For a Sidewalk device, possible events for a log message areRegistration
,Downlink_Data
, andUplink_Data
.Event (string) –
The event for a log message, if the log message is tied to a wireless device.
LogLevel (string) –
The log level for a log message. The log levels can be disabled, or set to
ERROR
to display less verbose logs containing only error information, or toINFO
for more detailed logs.
FuotaTaskLogOptions (list) –
The list of fuota task log options.
(dict) –
The log options for fuota tasks and can be used to set log levels for a specific type of fuota task.
Type (string) –
The fuota task type.
LogLevel (string) –
The log level for a log message. The log levels can be disabled, or set to
ERROR
to display less verbose logs containing only error information, or toINFO
for more detailed logs.Events (list) –
The list of FUOTA task event log options.
(dict) –
The log options for a FUOTA task event and can be used to set log levels for a specific fuota task event.
For a LoRaWAN FuotaTask type, possible event for a log message is
Fuota
.Event (string) –
The event for a log message, if the log message is tied to a fuota task.
LogLevel (string) –
The log level for a log message. The log levels can be disabled, or set to
ERROR
to display less verbose logs containing only error information, or toINFO
for more detailed logs.
Exceptions
IoTWireless.Client.exceptions.AccessDeniedException
IoTWireless.Client.exceptions.InternalServerException
IoTWireless.Client.exceptions.ResourceNotFoundException
IoTWireless.Client.exceptions.ThrottlingException
IoTWireless.Client.exceptions.ValidationException