File: log.coffee
Defined in: | lib/resin/log |
Method Summary
-
~
(void)
setQuiet(quiet)
Change log quietness
resin.log.setQuiet(true)
-
~
(Boolean)
isQuiet()
Check quietness
resin.log.isQuiet()
-
~
(void)
error(args...)
Log an error
resin.log.error('Something went wrong!')
-
~
(void)
warning(args...)
Log a warning
resin.log.warning('Something might happened!')
-
~
(void)
info(args...)
Log info
resin.log.info('Look!')
-
~
(void)
out(args...)
Log out
resin.log.out('Hello World!')
-
~
(void)
array(array, logFunction)
Log an array
It will iterate trough the array, calling logFunction for every item
Method Details
~
(void)
setQuiet(quiet)
Note:
If quiet is true, only resin.log.info will be quieted
Change log quietness
resin.log.setQuiet(true)
~
(Boolean)
isQuiet()
Check quietness
resin.log.isQuiet()
~
(void)
error(args...)
Log an error
resin.log.error('Something went wrong!')
~
(void)
warning(args...)
Log a warning
resin.log.warning('Something might happened!')
~
(void)
info(args...)
Log info
resin.log.info('Look!')
~
(void)
out(args...)
Note:
This will not be quieted even if setQuiet is set to true
Log out
resin.log.out('Hello World!')
~
(void)
array(array, logFunction)
Log an array
It will iterate trough the array, calling logFunction for every item