Class StreamHub.ElementLogger
A logger which can log to any HTML element
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
StreamHub.ElementLogger(config)
Creates a new ElementLogger
|
| Method Attributes | Method Name and Description |
|---|---|
|
log(message)
Logs a message
|
Class Detail
StreamHub.ElementLogger(config)
Creates a new ElementLogger
var logger = new StreamHub.ElementLogger({elementId : 'logMessagesDiv'});
- Parameters:
- config
- Configuration options
- config.elementId
- The ID of the element to append log messages to
Method Detail
log(message)
Logs a message
logger.log("A log message");
- Parameters:
- {String} message
- The message to log