Methods
(static) clear() → {object}
Deletes all logs.
Example
import {SideeX} from "@sideex/api"
var sideex = new SideeX();
console.log(sideex.log.clear());
Returns:
logs. logs
- Type
- object
(static) get(target) → {object}
Gets logs.
Example
import {SideeX} from "@sideex/api"
var sideex = new SideeX();
console.log(sideex.log.get("logs"));
console.log(sideex.log.get("typeMap"));
Parameters:
Name | Type | Description |
---|---|---|
target |
"logs" | "typeMap" | Two kinds of logs to get, "logs":logs,"typeMap":logTypeMap |
Returns:
logs | logTypeMap. logs
logTypeMap
- Type
- object
Type Definitions
logs
Properties:
Name | Type | Description |
---|---|---|
logs.type |
string | Log type |
logs.message |
string | Log message |
logs
- All Logs.
Type:
- object
logTypeMap
Properties:
Name | Type | Description |
---|---|---|
logTypeMap.debug |
Array | Debug type |
logTypeMap.info |
Array | Info type |
logTypeMap.error |
Array | Error type |
logTypeMap.warn |
Array | Warning type |
logTypeMap
- Log of XXX type.
Type:
- Array.<string>