We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bb6a6b commit bf84d46Copy full SHA for bf84d46
bin/helpers/logger.js
@@ -21,6 +21,16 @@ const winstonLoggerParams = {
21
],
22
};
23
24
+const winstonSyncCliLoggerParams = {
25
+ transports: [
26
+ new (winston.transports.Console)({
27
+ formatter: (options) => {
28
+ return (options.message ? options.message : '');
29
+ }
30
+ }),
31
+ ]
32
+}
33
+
34
const winstonFileLoggerParams = {
35
transports: [
36
new winston.transports.File({
@@ -31,3 +41,4 @@ const winstonFileLoggerParams = {
41
42
exports.winstonLogger = new winston.Logger(winstonLoggerParams);
43
exports.fileLogger = new winston.Logger(winstonFileLoggerParams);
44
+exports.syncCliLogger = new winston.Logger(winstonSyncCliLoggerParams);
0 commit comments