Files
infocom-systems-design/node_modules/pino/test/fixtures/ts/transport-exit-immediately-with-async-dest.ts
2025-10-03 22:27:28 +03:00

16 lines
302 B
TypeScript

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)