Files
node-fastify/node_modules/pino/test/fixtures/syncfalse.js
heiye111 c74f28caa7 one
2025-09-20 21:06:53 +08:00

7 lines
324 B
JavaScript

global.process = { __proto__: process, pid: 123456 }
Date.now = function () { return 1459875739796 }
require('node:os').hostname = function () { return 'abcdefghijklmnopqr' }
const pino = require(require.resolve('./../../'))
const asyncLogger = pino(pino.destination({ minLength: 4096, sync: false }))
asyncLogger.info('h')