send/server/log.js
Danny Coates 67f586b65c
format
2017-06-29 10:30:08 -07:00

12 lines
287 B
JavaScript

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