add hw2
This commit is contained in:
		
							
								
								
									
										12
									
								
								node_modules/pino/test/fixtures/transport-with-on-exit.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								node_modules/pino/test/fixtures/transport-with-on-exit.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| 'use strict' | ||||
| const pino = require('../..') | ||||
| const log = pino({ | ||||
|   transport: { | ||||
|     target: 'pino/file', | ||||
|     options: { destination: 1 } | ||||
|   } | ||||
| }) | ||||
| log.info('hello world!') | ||||
| process.on('exit', (code) => { | ||||
|   log.info('Exiting peacefully') | ||||
| }) | ||||
		Reference in New Issue
	
	Block a user
	 nik
					nik