12 lines
279 B
JavaScript
12 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;
|