A Utility Class which provides a simple way to log messages from within other classes.
var MyClass = new Class({ Implements: Log });
MyClass.implement(new Log);
var myLog = new Log;
var Test = new Class({ Implements: Log, initialize: function(){ this.enableLog().log('Initializing test'); } });
Passes a message to the logger.
myClass.log(msg[, msg[, msg[, ...]]]);
Enabled logging to the console, logs everything in the stack, and then clears the stack.
myClass.enableLog();
Disables logging to the console and instead subsequent calls to [log][Log:log] will be stored on the stack.
myClass.disableLog();
Clears the log stack.
myClass.resetLog();
This documentation is released under a Attribution-NonCommercial-ShareAlike 3.0 License.