fox-send/server/log.js

13 lines
286 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;