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