2017-06-08 22:45:28 +02:00
|
|
|
const conf = require('./config.js');
|
|
|
|
|
2017-06-09 19:44:12 +02:00
|
|
|
const notLocalHost = conf.notLocalHost;
|
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',
|
|
|
|
level: notLocalHost ? 'INFO' : 'verbose',
|
|
|
|
fmt: notLocalHost ? 'heka' : 'pretty',
|
|
|
|
debug: !notLocalHost
|
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;
|