pinojs / pino

🌲 super fast, all natural json logger
http://getpino.io
MIT License
14.21k stars 875 forks source link

pino printing `pid` and `hostname` even after setting it to null #549

Closed abuzarhamza closed 5 years ago

abuzarhamza commented 5 years ago

here my code When priting the logs its also printing the pid and hostname.


const pino = require('pino')({pid: null, hostname: null, name: 'FooBar' , level: 'debug', timestamp: false, useLevelLabels: true});
pino.debug('Hello')

pino version: 5.8.1

davidmarkclements commented 5 years ago

is there some documentation that lead you to use this approach? if so can you please let us know?

the correct way to achieve what you want is documented here: http://getpino.io/#/docs/api?id=base-object

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.