mirror of
https://gitlab.com/timvisee/send.git
synced 2024-11-10 21:22:35 +01:00
13 lines
282 B
JavaScript
13 lines
282 B
JavaScript
const conf = require('./config.js');
|
|
|
|
const isProduction = conf.env === 'production';
|
|
|
|
const mozlog = require('mozlog')({
|
|
app: 'FirefoxSend',
|
|
level: isProduction ? 'INFO' : 'verbose',
|
|
fmt: isProduction ? 'heka' : 'pretty',
|
|
debug: !isProduction
|
|
});
|
|
|
|
module.exports = mozlog;
|