add hw2
This commit is contained in:
15
node_modules/pino/test/fixtures/ts/transport-exit-immediately-with-async-dest.ts
generated
vendored
Normal file
15
node_modules/pino/test/fixtures/ts/transport-exit-immediately-with-async-dest.ts
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import pino from '../../..'
|
||||
import { join } from 'path'
|
||||
|
||||
const transport = pino.transport({
|
||||
target: join(__dirname, 'to-file-transport-with-transform.ts'),
|
||||
options: {
|
||||
destination: process.argv[2]
|
||||
}
|
||||
})
|
||||
const logger = pino(transport)
|
||||
|
||||
logger.info('Hello')
|
||||
logger.info('World')
|
||||
|
||||
process.exit(0)
|
||||
Reference in New Issue
Block a user