Added New Folder feature in Image Editor + Winston init refactor
This commit is contained in:
18
lib/winston.js
Normal file
18
lib/winston.js
Normal file
@@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
|
||||
var winston = require('winston');
|
||||
|
||||
module.exports = (isDebug) => {
|
||||
|
||||
winston.remove(winston.transports.Console)
|
||||
winston.add(winston.transports.Console, {
|
||||
level: (isDebug) ? 'info' : 'warn',
|
||||
prettyPrint: true,
|
||||
colorize: true,
|
||||
silent: false,
|
||||
timestamp: true
|
||||
});
|
||||
|
||||
return winston;
|
||||
|
||||
};
|
Reference in New Issue
Block a user