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 56b712e commit 9f1b866Copy full SHA for 9f1b866
scripts/logger.js
@@ -0,0 +1,14 @@
1
+const { createLogger, format, transports } = require('winston');
2
+
3
+const logger = createLogger({
4
+ level: 'debug',
5
+ format: format.combine(
6
+ format.colorize(),
7
+ format.simple(),
8
+ ),
9
+ // You can also comment out the line above and uncomment the line below for JSON format
10
+ // format: format.json(),
11
+ transports: [new transports.Console()]
12
+});
13
14
+module.exports = logger
0 commit comments