2017-06-08 22:45:28 +02:00
|
|
|
const conf = require('./config.js');
|
|
|
|
|
2017-06-29 19:30:08 +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;
|