1. API Operations
  2. Create logger

Deprecated

You are viewing a deprecated version of our API Reference. Please visit the up-to-date documentation.

Create logger

This operation creates a new HTTP request logger, with an unique label.


Request

Parameters
Parameter
op
Type
string
required
true

Add a new logger. The value is create_logger.

Parameter
label
Type
string
required
true

The unique label for the logger.

{
  "op": "create_logger",
  "label": "mypentest"
}

Response

Attributes
Attribute
op_status
Type
string

The status of the operation. The value can be "success" or "fail".

Attribute
logger_id
Type
integer

The ID of the newly created logger. Returned in case of a successful operation.

Attribute
error
Type
string

Error message. Returned in case of a failed operation. The value is invalid request.

Attribute
details
Type
string

Error details. Returned in case of an error.

{
  "op_status": "success",
  "logger_id": 545233
}