diff --git a/lib/console2.js b/lib/console2.js index ff2a4db..8655566 100644 --- a/lib/console2.js +++ b/lib/console2.js @@ -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) {