Request Logging v2

post

/jderest/v2/log

Request to add an entry for the passed message to the AIS Server log.

Request

Supported Media Types
Header Parameters
Body ()
The input to the logging service.
Root Schema : LogRequest
Type: object
The input to the logging service.
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successful Execution

400 Response

Bad Request - Invalid JSON Input

403 Response

Authorization Failure

415 Response

Invalid Content-Type Header - Must use application/json

444 Response

Invalid Token
Body ()
Root Schema : ServiceErrorResponse
Type: object
Error Response
Show Source

500 Response

Server Failed to Process Request
Body ()
Root Schema : ServiceErrorResponse
Type: object
Error Response
Show Source
Back to Top

Examples

Example Requests

Use the logging service to request to add entries to the AIS Server log. The token value is from a prior call to the token request service to establish a session.

curl -i -X POST -H "Content-Type:application/json" http://ais_server_url/jderest/log -d
{
    "token": "044Suh8WJ2JDrtzGqb+Nkjcy6FkDuCOj3RFo+eX9ghoCxI=MDE5MDA4NTQxMDIzMzg2MjUxMDkzOTk0Mk15RGV2aWNlMTQ3ODY0MjkzODExMg==",
    "deviceName":"MyDevice",
    "application":"My Application",
    "applicationVersion":"My Application Version",
    "message": "Log My Message from Curl",
    "level": 2
}

Example Response

The log service response does not contain any body. It is always empty.

Example Entry in the AIS Server Log

The preceding request will add the following log entry to the AIS Server log.

[WARN][JDE][AIS]AIS LOG REQUEST: --Level WARN --Application: My Application--Application Version: My Application Version --User: JDE --Device Name: MyDevice --Log Message: Log My Message from Curl 
Back to Top