Top Rounds
| We are Hiring! |

_log ·

This is a Browser Action API.

_log is used to log into the playback logs.
This is different from the debug methods which log messages to the standard output/error streams or into a file.

Syntax:

_log ( message, type )
The parameters are:

  • message: Message to log
  • type: where type can be “success”, “failure”, “error”, “info”

Example:

_log(“Here”, “success”); // shows up “Here” as a green bar in the playback log.
_log(“Here”, “failure”); // shows up “Here” as a red bar in the playback log.
_log(“Here”, “error”); // shows up “Here” as a red bar in the playback log.
_log(“Here”, “info”); // shows up “Here” without any colour, in the playback log.
_log(“Here”, “custom”); // shows “Here” in a different color on the logs. Use “custom”, “custom1”, “custom2” … “custom5” for different colors. (Added from build 20080305)




---


Top Rounds