logger.js | |
bbop. | BBOP JS logger object. |
Functions | |
logger | Arguments: (optional) initial context. |
Variables | |
DEBUG | Different debugging available per object. |
Functions | |
reset_context | Define the ability to reset the contex. |
push_context | Add an additional logging context to the stack. |
pop_context | Remove the last context if it’s there. |
kvetch | Log a string to somewhere. |
BBOP JS logger object. Using .kvetch(), you can automatically log a message in almost any environment you find yourself in--browser, server wherever. Also, if you have jQuery available and an element with the id “bbop-logger-console-textarea”, “bbop-logger-console-text”, or “bbop-logger-console-html”, the logger will append to that element (with a “\n” (autoscroll), “\n”, or “<br />” terminator respectively) instead.
Functions | |
logger | Arguments: (optional) initial context. |
Variables | |
DEBUG | Different debugging available per object. |
Functions | |
reset_context | Define the ability to reset the contex. |
push_context | Add an additional logging context to the stack. |
pop_context | Remove the last context if it’s there. |
kvetch | Log a string to somewhere. |
Arguments: (optional) initial context.
bbop.logger = function( initial_context )
Different debugging available per object.
this.DEBUG
Define the ability to reset the contex.
this.reset_context = function( new_initial_context )
Add an additional logging context to the stack.
this.push_context = function( new_context )
Remove the last context if it’s there.
this.pop_context = function()
Log a string to somewhere.
this.kvetch = function( string )