2017-06-08 20:45:28 +00:00
|
|
|
const conf = require('./config.js');
|
|
|
|
|
2017-06-08 22:01:04 +00:00
|
|
|
let notLocalHost = conf.notLocalHost;
|
2017-06-08 20:45:28 +00:00
|
|
|
|
|
|
|
const mozlog = require('mozlog') ({
|
|
|
|
app: 'FirefoxFileshare',
|
|
|
|
level: notLocalHost ? 'INFO' : 'verbose',
|
|
|
|
fmt: notLocalHost ? 'heka' : 'pretty',
|
|
|
|
debug: !notLocalHost
|
|
|
|
})
|
|
|
|
|
|
|
|
module.exports = mozlog;
|