Class: JSJaCConsoleLogger

JSJaCConsoleLogger

Implementation of the Debugger interface for Firebug and Safari. Creates a new debug logger to be passed to jsjac's connection constructor. Of course you can use it for debugging in your code too.

new JSJaCConsoleLogger

A logger that logs using the 'console' object.
Parameters:
Name Type Description
level int The maximum level for debugging messages to be displayed. Thus you can tweak the verbosity of the logger. A value of 0 means very low traffic whilst a value of 4 makes logging very verbose about what's going on.
Author:
  • Stefan Strigler steve@zeank.in-berlin.de
Source:
  • JSJaCConsoleLogger.js, line 19

Extends

Methods

getLevel

Gets verbosity level.
Source:
  • JSJaCConsoleLogger.js, line 77
Returns:
The level
Type
int

log

Logs a message to firebug's/safari's console
Parameters:
Name Type Description
msg String The message to be logged.
level int The message's verbosity level. Importance is from 0 (very important) to 4 (not so important). A value of 1 denotes an error in the usual protocol flow.
Source:
  • JSJaCConsoleLogger.js, line 36

log

Log a message.
Parameters:
Name Type Argument Description
message string The message to be logged.
level int <optional>
The loglevel of the message to be logged.
Source:
  • JSJaCDebugger.js, line 12

setLevel

Sets verbosity level.
Parameters:
Name Type Description
level int The maximum level for debugging messages to be displayed. Thus you can tweak the verbosity of the logger. A value of 0 means very low traffic whilst a value of 4 makes logging very verbose about what's going on.
Source:
  • JSJaCConsoleLogger.js, line 72
Returns:
This debug logger

start

Empty function for API compatibility
Source:
  • JSJaCConsoleLogger.js, line 28