JSJaC

## Class JSJaCConsoleLogger

    Object
       |
       +--JSJaCConsoleLogger

class 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.
Defined in JSJaCConsoleLogger.js

Constructor Summary
`JSJaCConsoleLogger(<int> level)`

Method Summary
`int` | `getLevel()` Gets verbosity level.
`void` | `log(<String> msg, <int> level)` Logs a message to firebug's/safari's console
`ConsoleLogger` | `setLevel(<int> level)` Sets verbosity level.
`void` | `start()` Empty function for API compatibility

Constructor Detail

### JSJaCConsoleLogger

    JSJaCConsoleLogger(<int> level)

Parameters:

`level` - 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.

Method Detail

### getLevel

    int getLevel()

Gets verbosity level.

Returns:

The level

### log

    void log(<String> msg, <int> level)

Logs a message to firebug's/safari's console

Parameters:

`msg` - The message to be logged.

`level` - 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.

### setLevel

    ConsoleLogger setLevel(<int> level)

Sets verbosity level.

Parameters:

`level` - 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.

Returns:

This debug logger

### start

    void start()

Empty function for API compatibility

JSJaC

Documentation generated by JSDoc on Tue Jan 5 02:48:26 2021