@apolitical/logger
Version:
Node.js module to expose Apolitical's logger service
22 lines (19 loc) • 375 B
JavaScript
;
const { NODE_ENV } = process.env;
module.exports = {
LOGGER: {
LOGGING_LEVELS: ['error', 'warn', 'info', 'debug'],
TRANSPORTS: {
FILE: {
ERROR_OPTIONS: {
filename: 'error.log',
level: 'error',
},
COMBINED_OPTIONS: {
filename: 'combined.log',
},
},
},
},
NODE_ENV,
};