forked from mirrors/Scribe.js
Doc
This commit is contained in:
parent
8987f3cddf
commit
7c22bdcf16
1 changed files with 14 additions and 7 deletions
|
@ -46,6 +46,13 @@
|
||||||
return '[' + tags.join('][') + ']';
|
return '[' + tags.join('][') + ']';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* buildFileInfos
|
||||||
|
*
|
||||||
|
* @param {Object} infos
|
||||||
|
* @param {String} infos.filename
|
||||||
|
* @param {String} infos.line
|
||||||
|
*/
|
||||||
var buildFileInfos = function (infos) {
|
var buildFileInfos = function (infos) {
|
||||||
return '[' + infos.filename + ':' + infos.line + ']';
|
return '[' + infos.filename + ':' + infos.line + ']';
|
||||||
};
|
};
|
||||||
|
@ -245,14 +252,14 @@
|
||||||
* Create a new logger
|
* Create a new logger
|
||||||
* You can then use it with console.myNewLogger
|
* You can then use it with console.myNewLogger
|
||||||
*
|
*
|
||||||
* @param {String} name The name of the logger.
|
* @param {String} name The name of the logger.
|
||||||
* @param {String} color Optional. Color of the console output. Default blue.
|
* @param {String} color Optional. Color of the console output. Default blue.
|
||||||
* See text colors from https://github.com/Marak/colors.js
|
* See text colors from https://github.com/Marak/colors.js
|
||||||
* @param {Object} opt Options object
|
* @param {Object} opt Options object
|
||||||
* @param {Boolean} opt.logInConsole Optional. Default true.
|
* @param {Boolean} opt.logInConsole Optional. Default true.
|
||||||
* Should the logger print to the console ?
|
* Should the logger print to the console ?
|
||||||
* @param {Boolean} opt.logInFile Optional. Default true.
|
* @param {Boolean} opt.logInFile Optional. Default true.
|
||||||
* If the log should be save in file.
|
* If the log should be save in file.
|
||||||
*/
|
*/
|
||||||
Console2.prototype.addLogger = function (name, color, opt) {
|
Console2.prototype.addLogger = function (name, color, opt) {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue