add hw2
This commit is contained in:
11
node_modules/pino/test/fixtures/ts/transport-exit-on-ready.ts
generated
vendored
Normal file
11
node_modules/pino/test/fixtures/ts/transport-exit-on-ready.ts
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import pino from '../../..'
|
||||
|
||||
const transport = pino.transport({
|
||||
target: 'pino/file'
|
||||
})
|
||||
const logger = pino(transport)
|
||||
|
||||
transport.on('ready', function () {
|
||||
logger.info('Hello')
|
||||
process.exit(0)
|
||||
})
|
||||
Reference in New Issue
Block a user