This commit is contained in:
Guillaume Wuip 2014-10-25 17:25:05 +02:00
parent 8987f3cddf
commit 7c22bdcf16

View file

@ -46,6 +46,13 @@
return '[' + tags.join('][') + ']';
};
/**
* buildFileInfos
*
* @param {Object} infos
* @param {String} infos.filename
* @param {String} infos.line
*/
var buildFileInfos = function (infos) {
return '[' + infos.filename + ':' + infos.line + ']';
};
@ -245,14 +252,14 @@
* Create a new logger
* You can then use it with console.myNewLogger
*
* @param {String} name The name of the logger.
* @param {String} color Optional. Color of the console output. Default blue.
* See text colors from https://github.com/Marak/colors.js
* @param {Object} opt Options object
* @param {String} name The name of the logger.
* @param {String} color Optional. Color of the console output. Default blue.
* See text colors from https://github.com/Marak/colors.js
* @param {Object} opt Options object
* @param {Boolean} opt.logInConsole Optional. Default true.
* Should the logger print to the console ?
* @param {Boolean} opt.logInFile Optional. Default true.
* If the log should be save in file.
* Should the logger print to the console ?
* @param {Boolean} opt.logInFile Optional. Default true.
* If the log should be save in file.
*/
Console2.prototype.addLogger = function (name, color, opt) {