mirror of
https://github.com/docker-training/node-bulletin-board.git
synced 2025-12-15 07:16:43 +08:00
Add logging & db config
This commit is contained in:
@@ -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'
|
||||
})
|
||||
]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user