16 lines
411 B
JavaScript
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,
|
|
}),
|
|
],
|
|
});
|