Add logging & db config

This commit is contained in:
Elton Stoneman
2019-04-07 20:14:26 +01:00
parent 68b8cd014c
commit b9818a6450
4 changed files with 71 additions and 9 deletions

View File

@@ -1,10 +1,14 @@
const winston = require('winston');
const { format, transports } = require('winston');
var logConfig = module.exports = {};
logConfig.options = {
format: format.combine(
format.splat(),
format.simple()
),
transports: [
new winston.transports.Console({
level: 'info'
new transports.Console({
level: 'debug'
})
]
};