mirror of
https://github.com/arthur-pbty/portfolio2023.git
synced 2026-06-09 18:39:25 +02:00
9 lines
362 B
JavaScript
9 lines
362 B
JavaScript
global.process = { __proto__: process, pid: 123456 }
|
|
Date.now = function () { return 1459875739796 }
|
|
require('os').hostname = function () { return 'abcdefghijklmnopqr' }
|
|
const pino = require(require.resolve('./../../../'))
|
|
const log = pino({ prettyPrint: true }).child({ a: 1 })
|
|
log.info('h')
|
|
log.child({ b: 2 }).info('h3')
|
|
setTimeout(() => log.info('h2'), 200)
|