Projektstart
This commit is contained in:
8
backend/node_modules/pino/test/fixtures/destination-exit.js
generated
vendored
Normal file
8
backend/node_modules/pino/test/fixtures/destination-exit.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
global.process = { __proto__: process, pid: 123456 }
|
||||
Date.now = function () { return 1459875739796 }
|
||||
require('node: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)
|
||||
Reference in New Issue
Block a user