drop.chapril.org-firefoxsend/server/log.js
2017-06-09 10:44:12 -07:00

13 lines
279 B
JavaScript

const conf = require('./config.js');
const notLocalHost = conf.notLocalHost;
const mozlog = require('mozlog')({
app: 'FirefoxFileshare',
level: notLocalHost ? 'INFO' : 'verbose',
fmt: notLocalHost ? 'heka' : 'pretty',
debug: !notLocalHost
});
module.exports = mozlog;