Methods
(static) log(message, data)
Logs a message and object on console, use this instead of console.log
Parameters:
Name | Type | Description |
---|---|---|
message |
string | |
data |
any |
- Source:
Example
log('This is an apple', 'iPhone')
(static) logDeprecation(message, hard)
Logs a deprecation message
Parameters:
Name | Type | Description |
---|---|---|
message |
string | |
hard |
boolean | should this be a strong warning? |
- Source:
Example
logDeprecation('This method is about to deprecate')
logDeprecation('This method is about to deprecate', true)
(static) logError(message, error)
Logs error on console, use this instead of console.log
Parameters:
Name | Type | Description |
---|---|---|
message |
string | |
error |
string |
- Source:
Example
logError('This is an error', '3+2=6')