nextrans-logger 0.1.14 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.cjs +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -65,7 +65,7 @@ class Logging {
|
|
|
65
65
|
return formatMessage(log, this.env).replace(/`/g, '');
|
|
66
66
|
}
|
|
67
67
|
formatPrint() {
|
|
68
|
-
return winston_1.format.combine(winston_1.format.colorize({ all: true, colors: { info: '
|
|
68
|
+
return winston_1.format.combine(winston_1.format.colorize({ all: true, colors: { info: 'green', error: 'red', warn: 'yellow' } }), winston_1.format.errors({ stack: true }), winston_1.format.timestamp({ format: 'YYYY-MM-DD HH:mm:ss' }), winston_1.format.printf((log) => this.lineFormat(log)));
|
|
69
69
|
}
|
|
70
70
|
log() {
|
|
71
71
|
var _a, _b, _c, _d;
|
package/lib/index.js
CHANGED
|
@@ -61,7 +61,7 @@ export default class Logging {
|
|
|
61
61
|
return formatMessage(log, this.env).replace(/`/g, '');
|
|
62
62
|
}
|
|
63
63
|
formatPrint() {
|
|
64
|
-
return format.combine(format.colorize({ all: true, colors: { info: '
|
|
64
|
+
return format.combine(format.colorize({ all: true, colors: { info: 'green', error: 'red', warn: 'yellow' } }), format.errors({ stack: true }), format.timestamp({ format: 'YYYY-MM-DD HH:mm:ss' }), format.printf((log) => this.lineFormat(log)));
|
|
65
65
|
}
|
|
66
66
|
log() {
|
|
67
67
|
const transportsData = [
|