drop.chapril.org-firefoxsend/server/log.js

13 lines
287 B
JavaScript
Raw Normal View History

2017-06-08 22:45:28 +02:00
const conf = require('./config.js');
2017-06-30 01:11:33 +02:00
const isProduction = conf.env === 'production';
2017-06-08 22:45:28 +02:00
2017-06-09 19:44:12 +02:00
const mozlog = require('mozlog')({
2017-06-08 22:45:28 +02:00
app: 'FirefoxFileshare',
2017-06-24 05:01:32 +02:00
level: isProduction ? 'INFO' : 'verbose',
fmt: isProduction ? 'heka' : 'pretty',
debug: !isProduction
2017-06-09 19:44:12 +02:00
});
2017-06-08 22:45:28 +02:00
2017-06-09 19:44:12 +02:00
module.exports = mozlog;