mirror of
https://github.com/arthur-pbty/portfolio2023.git
synced 2026-06-22 01:53:22 +02:00
9 lines
360 B
JavaScript
9 lines
360 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({ foo: 123 })
|
|
log.info('before')
|
|
log.setBindings({ foo: 456, bar: 789 })
|
|
log.info('after')
|