Constructor
new Logger()
Properties:
| Name | Type | Description |
|---|---|---|
LogsViewer |
object | Holds an instance of the RightView class. |
- Source:
Methods
initiate(id, td) → {void}
Initiate a logs object at the local storage.
Parameters:
| Name | Type | Description |
|---|---|---|
id |
string | The id of a Thing |
td |
object | The Thing Description of a Thing. |
- Source:
Returns:
- Type
- void
saveRequest(affordance, interactionAffordance, data, uriVariables, id, requestDate) → {void}
Saves a log Request object at the local storage and sends it to the RightView.
Parameters:
| Name | Type | Description |
|---|---|---|
affordance |
string | The id of a Thing |
interactionAffordance |
string | The id of a Thing |
data |
boolean | null | undefined | number | string | object | The id of a Thing |
uriVariables |
undefined | object | The uriVariables of a request. |
id |
string | The id of a request. |
requestDate |
string | The date of a request. |
- Source:
Returns:
- Type
- void
saveResponse(affordance, interactionAffordance, data, uriVariables, id, requestDate, responseDate, status) → {void}
Saves a log response object at the local storage and sends it to the RightView.
Parameters:
| Name | Type | Description |
|---|---|---|
affordance |
string | The id of a Thing |
interactionAffordance |
string | The id of a Thing |
data |
boolean | null | undefined | number | string | object | The id of a Thing |
uriVariables |
undefined | object | The uriVariables of a request. |
id |
string | The id of a request. |
requestDate |
string | The date of a request. |
responseDate |
string | The date of a response. |
status |
string | The status of a request. |
- Source:
Returns:
- Type
- void