log-segment
Advanced tools
Comparing version 1.7.7 to 1.7.8
10
main.js
@@ -351,3 +351,3 @@ 'use strict' | ||
// paint the message | ||
return __color(segment, message) | ||
return __color(segment, level, message) | ||
}) | ||
@@ -360,11 +360,11 @@ | ||
return __output(segment, level, __color(segment, __format(segment, level, _data))) | ||
return __output(segment, level, __color(segment, level, __format(segment, level, _data))) | ||
} | ||
} | ||
const __color = function (segment, message) { | ||
const __color = function (segment, level, message) { | ||
if (__segments[segment] && | ||
__segments[segment].color && | ||
__segments[segment].mode !== mode.EMAIL && | ||
__segments[segment].mode !== mode.FILE && | ||
__levels[level].mode !== mode.EMAIL && | ||
__levels[level].mode !== mode.FILE && | ||
chalk[__segments[segment].color]) { | ||
@@ -371,0 +371,0 @@ return chalk[__segments[segment].color](message) |
{ | ||
"name": "log-segment", | ||
"version": "1.7.7", | ||
"version": "1.7.8", | ||
"description": "logger with partition", | ||
@@ -14,2 +14,3 @@ "main": "main.js", | ||
"devDependencies": { | ||
"pre-commit": "^1.2.2", | ||
"standard": "^11.0.1", | ||
@@ -16,0 +17,0 @@ "tap": "^10.x", |
25387
4