drop.chapril.org-firefoxsend/server/log.js
2017-07-11 13:45:31 -07:00

13 lines
282 B
JavaScript

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