Menu
AWS IoT
Developer Guide

SetV2LoggingLevel

Sets the logging level.

Request syntax:

POST /v2LoggingLevel Content-type: application/json { "logTarget": { "targetType": "string", "targetName": "string" }, "logLevel": "string" }

Request Body Parameters:

Name

Type

Req?

Description

logTarget

LogTarget

yes

The log target.

logLevel

LogLevel

yes

The log level.

Errors:

InternalException

An unexpected error has occurred.

HTTP response code: 500

NotConfiguredException

The resource is not configured.

HTTP response code: 404

InvalidRequestException

The contents of the request were invalid. For example, this code is returned when an UpdateJobExecution request contains invalid status details. The message contains details about the error.

HTTP response code: 400

ServiceUnavailableException

The service is temporarily unavailable.

HTTP response code: 503

CLI

Synopsis:

aws iot set-v2-logging-level \ --log-target <value> \ --log-level <value> \ [--cli-input-json <value>] \ [--generate-cli-skeleton]

cli-input-json format:

{ "logTarget": { "targetType": "string", "targetName": "string" }, "logLevel": "string" }

cli-input-json fields:

Name

Type

Description

logTarget

LogTarget

The log target.

targetType

string

enum: DEFAULT | THING_GROUP

java class: iot.goldeneye.service.LogTargetType

The target type.

targetName

string

The target name.

logLevel

string

enum: DEBUG | INFO | ERROR | WARN | DISABLED

java class: iot.goldeneye.service.LogLevel

The log level.

Output:

None

On this page: