This tool is used for debug purpose. By default, the input is displayed with the standard logger.log()
function, then sent to the output unchanged.
You can provide your own logguer.
""
.log(msg)
function. Default is the standard console.
By default, logger
is equal to the standard javascript console
object.logger
.var logger = function(msg) { ... };
var tool1 = Matis.tools.ConsoleLog();
var tool2 = Matis.tools.ConsoleLog('> ');
var tool3 = Matis.tools.ConsoleLog(logger);
var tool4 = Matis.tools.ConsoleLog('> ', logger);