pinojs/pino

bindings() and setBindings() are not present in the browser version of pino

开放

#1,177 创建于 2021年10月20日

 (5 条评论) (0 个反应) (0 位负责人)JavaScript (839 个派生)batch import
enhancementgood first issue

仓库指标

星标
 (13,157 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Hello!

I was attempting to use pino in the browser today and discovered that .bindings() is undefined. Additionally, .setBindings() is also undefined, but it's also undocumented in general (is it officially part of the API?).

I looked into adding this to browser.js but I'd definitely need some guidance before proceeding. For example, I'm not sure if bindings changes cascade through child loggers or if they are fixed at the time of child creation, for example.

贡献者指南