add hw2
This commit is contained in:
9
node_modules/pino/test/fixtures/syncfalse-exit.js
generated
vendored
Normal file
9
node_modules/pino/test/fixtures/syncfalse-exit.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
global.process = { __proto__: process, pid: 123456 }
|
||||
Date.now = function () { return 1459875739796 }
|
||||
require('os').hostname = function () { return 'abcdefghijklmnopqr' }
|
||||
const pino = require(require.resolve('./../../'))
|
||||
const dest = pino.destination({ dest: 1, minLength: 4096, sync: false })
|
||||
const logger = pino({}, dest)
|
||||
logger.info('hello')
|
||||
logger.info('world')
|
||||
process.exit(0)
|
||||
Reference in New Issue
Block a user