1
0
mirror of https://gitlab.com/timvisee/send.git synced 2024-09-20 08:01:32 +02:00
send/server/log.js
2017-08-25 09:44:52 -07:00

13 lines
279 B
JavaScript

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