UNPKG

@ministryofjustice/hmpps-digital-prison-reporting-frontend

Version:

The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.

19 lines (14 loc) 521 B
'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