Logger

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
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?

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
Example
logError('This is an error', '3+2=6')