File: log.coffee

Defined in: lib/resin/log

Method Summary

Method Details

~ (void) setQuiet(quiet)

Note: If quiet is true, only resin.log.info will be quieted

Change log quietness

resin.log.setQuiet(true)

Parameters:

  • quiet ( Boolean ) quietness

~ (Boolean) isQuiet()

Check quietness

resin.log.isQuiet()

Returns:

  • ( Boolean ) — is quiet

~ (void) error(args...)

Log an error

resin.log.error('Something went wrong!')

Parameters:

  • message ( ...String ) message

~ (void) warning(args...)

Log a warning

resin.log.warning('Something might happened!')

Parameters:

  • message ( ...String ) message

~ (void) info(args...)

Log info

resin.log.info('Look!')

Parameters:

  • message ( ...String ) message

~ (void) out(args...)

Note: This will not be quieted even if setQuiet is set to true

Log out

resin.log.out('Hello World!')

Parameters:

  • message ( ...String ) message

~ (void) array(array, logFunction)

Log an array

It will iterate trough the array, calling logFunction for every item

Parameters:

  • array ( Array ) array
  • logFunction ( Function ) log function (e.g: resin.log.info)

Throws:

  • ( Error ) — Will throw if logFunction is not a function

    Quickly fuzzy find classes, mixins, methods, file:

    Control the navigation frame:

    You can focus and blur the search input: