Class Index

Classes


Class StreamHub.ElementLogger

A logger which can log to any HTML element

Class Summary
Constructor Attributes Constructor Name and Description
 
Creates a new ElementLogger
Method Summary
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

Copyright © 2009 StreamHub. Tutorials, news and guides can be found on the StreamHub Comet Blog.