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

12 lines
276 B
JavaScript
Raw Normal View History

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