initial commit
This commit is contained in:
16
config/winston.js
Normal file
16
config/winston.js
Normal file
@@ -0,0 +1,16 @@
|
||||
var winston = require("winston");
|
||||
var expressWinston = require("express-winston");
|
||||
|
||||
var requestLogger = expressWinston.logger({
|
||||
transports: [
|
||||
new winston.transports.Console()
|
||||
],
|
||||
format: winston.format.simple(),
|
||||
expressFormat: true,
|
||||
meta: false,
|
||||
colorize: true,
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
requestLogger
|
||||
};
|
||||
Reference in New Issue
Block a user