fox-send/server/log.js

13 lines
282 B
JavaScript
Raw Normal View History

2017-06-08 20:45:28 +00:00
const conf = require('./config.js');
2017-06-29 23:11:33 +00:00
const isProduction = conf.env === 'production';
2017-06-08 20:45:28 +00:00
2017-06-09 17:44:12 +00:00
const mozlog = require('mozlog')({
2017-07-11 19:34:49 +00:00
app: 'FirefoxSend',
2017-06-24 03:01:32 +00:00
level: isProduction ? 'INFO' : 'verbose',
fmt: isProduction ? 'heka' : 'pretty',
debug: !isProduction
2017-06-09 17:44:12 +00:00
});
2017-06-08 20:45:28 +00:00
2017-06-09 17:44:12 +00:00
module.exports = mozlog;