bigbluebutton-Github/bigbluebutton-html5/imports/startup/server/logger.js
2016-05-12 17:43:59 +00:00

16 lines
411 B
JavaScript

// Setting up a logger
const log = {};
if (process != null && process.env != null && process.env.NODE_ENV == 'production') {
log.path = '/var/log/bigbluebutton/bbbnode.log';
} else {
log.path = `${process.env.PWD}/log/development.log`;
}
export let logger = new Winston.Logger({
transports: [
new Winston.transports.Console(), new Winston.transports.File({
filename: log.path,
}),
],
});