fox-send/server/log.js

13 lines
287 B
JavaScript
Raw Normal View History

2017-06-08 20:45:28 +00:00
const conf = require('./config.js');
2017-06-29 17:30:08 +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-06-08 20:45:28 +00:00
app: 'FirefoxFileshare',
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;