1
0
mirror of https://gitlab.com/timvisee/send.git synced 2024-11-14 07:02:30 +01:00
send/server/log.js

13 lines
279 B
JavaScript
Raw Normal View History

const conf = require('./config');
2017-06-08 22:45:28 +02:00
2017-06-30 01:11:33 +02:00
const isProduction = conf.env === 'production';
2017-06-08 22:45:28 +02:00
2017-06-09 19:44:12 +02:00
const mozlog = require('mozlog')({
2017-07-11 21:34:49 +02:00
app: 'FirefoxSend',
2017-06-24 05:01:32 +02:00
level: isProduction ? 'INFO' : 'verbose',
fmt: isProduction ? 'heka' : 'pretty',
debug: !isProduction
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;