send/server/log.js
Daniela Arcese 9026702e7b lint
2017-06-30 09:47:50 -07:00

12 lines
287 B
JavaScript

const conf = require('./config.js');
const isProduction = conf.env === 'production';
const mozlog = require('mozlog')({
app: 'FirefoxFileshare',
level: isProduction ? 'INFO' : 'verbose',
fmt: isProduction ? 'heka' : 'pretty',
debug: !isProduction
});
module.exports = mozlog;