Return to Snippet

Revision: 19895
at November 3, 2009 08:12 by benjaminpearson


Initial Code
/** 
 * Used to log to the console.
 * Call it by writing $.log('your message here')
 */
jQuery.fn.log = function (msg) 
{
	try
	{	
		if (console)	
			console.log("%s: %o", msg, this);
	}
	catch(e) {}
	
	return this;
}

Initial URL

                                

Initial Description

                                

Initial Title
jQuery Log Function

Initial Tags

                                

Initial Language
jQuery