UNPKG

pino

Version:

super fast, all natural json logger

7 lines (6 loc) 324 B
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')