Class finesse.cslogger.ClientLogger
Allows gadgets to call the log function to publish client logging messages over the hub.
Defined in: finesse.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
init(hub, gadgetId)
Initiates the client logger with a hub and a gadgetId.
|
|
log(message)
Publishes a Log Message over the hub.
|
Method Detail
init(hub, gadgetId)
Initiates the client logger with a hub and a gadgetId.
var _clientLogger = finesse.cslogger.ClientLogger; _clientLogger.init(gadgets.Hub, "MyGadgetId");
- Parameters:
- {Object} hub
- The hub to communicate with.
- {String} gadgetId
- A unique string to identify which gadget is doing the logging.
log(message)
Publishes a Log Message over the hub.
_clientLogger.log("This is some important message for MyGadget");
- Parameters:
- {String} message
- The string to log.