'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var bunyan = require('bunyan');
var bunyanFormat = require('bunyan-format');

const formatOut = bunyanFormat({ outputMode: 'short', color: false });
const disableLogs = process.env['SUPPRESS_LOGS'];
const logger = bunyan.createLogger({
    name: 'Digital Prison Reporting:',
    stream: formatOut,
    level: disableLogs ? bunyan.FATAL + 1 : 'debug',
});

exports.default = logger;
exports.logger = logger;
//# sourceMappingURL=logger.js.map
