Methods
(inner) setLogs(log, methDefopt, prefixopt) → {void}
- Description:
Turns logs on || off.
Set the default log method.
Add a prefix to all log message
- Source:
Example
setLogs(true, 'dir', '[ DEV MODE ]')
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
log |
Boolean | log values |
|
methDef |
String |
<optional> |
default log method |
prefix |
String |
<optional> |
string to add to all logs |
Returns:
- Type
- void
(inner) logsReset() → {void}
- Description:
Resets log settings to default
- Source:
Example
resetLogs()
// Resets settings set from the `setLogs method`
Returns:
- Type
- void
(inner) logFun(args) → {void}
- Description:
Logs a string to the inspector, uses the last argument to determine the log type
- Source:
Example
logData('data to log', 'error')
// Will call console.error('data to log')
Parameters:
Name | Type | Description |
---|---|---|
args |
Array | to be passed to the log call |
Returns:
- Type
- void