Files
infocom-systems-design/node_modules/pino/test/fixtures/destination-exit.js
2025-10-03 22:27:28 +03:00

9 lines
323 B
JavaScript

global.process = { __proto__: process, pid: 123456 }
Date.now = function () { return 1459875739796 }
require('os').hostname = function () { return 'abcdefghijklmnopqr' }
const pino = require(require.resolve('./../../'))
const logger = pino({}, pino.destination(1))
logger.info('hello')
logger.info('world')
process.exit(0)