parent
2dadce7391
commit
a5e1c4c1f9
@ -1,20 +1,20 @@ |
|||||||
module.exports = (log) => { return { |
module.exports = (log) => { return { |
||||||
error: (message, options, newLine, spacer) => log(message, { |
error: (message, options, prenl, postnl, ...multcons) => log(message, { |
||||||
color: 'redBright', |
color: 'redBright', |
||||||
source: 'err!', |
source: 'err!', |
||||||
sourceColor: 'red', |
sourceColor: 'red', |
||||||
level: 0 |
level: 0 |
||||||
}, newLine, spacer), |
}, prenl, postnl, ...multcons), |
||||||
warn: (message, options, newLine, spacer) => log(message, { |
warn: (message, options, prenl, postnl, ...multcons) => log(message, { |
||||||
color: 'yellowBright', |
color: 'yellowBright', |
||||||
source: 'warn', |
source: 'warn', |
||||||
sourceColor: 'yellow', |
sourceColor: 'yellow', |
||||||
level: 1 |
level: 1 |
||||||
}, newLine, spacer), |
}, prenl, postnl, ...multcons), |
||||||
success: (message, options, newLine, spacer) => log(message, { |
success: (message, options, prenl, postnl, ...multcons) => log(message, { |
||||||
color: 'greenBright', |
color: 'greenBright', |
||||||
source: 'proc' || options && options.source, |
source: 'proc' || options && options.source, |
||||||
sourceColor: 'green', |
sourceColor: 'green', |
||||||
level: options && typeof options.level !== 'undefined' ? options.level : 0 |
level: options && typeof options.level !== 'undefined' ? options.level : 0 |
||||||
}, newLine, spacer) |
}, prenl, postnl, ...multcons) |
||||||
}}; |
}}; |
Loading…
Reference in new issue