pinojs/pino

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

Open

#1,177 opened on 2021年10月20日

GitHub で見る
 (3 comments) (0 reactions) (0 assignees)JavaScript (839 forks)batch import
enhancementgood first issue

Repository metrics

Stars
 (13,157 stars)
PR merge metrics
 (平均マージ 1h 28m) (30d で 1 merged 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.

コントリビューターガイド