{
  "id": "task_libraries:logging/javascript",
  "path": "/exapedia/javascript-logging-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "JavaScript logging libraries",
  "answer": [
    {
      "t": "text",
      "text": "JavaScript logging libraries record what an application does as it runs, from debug messages to structured events with severity levels. A logger writes each record to a destination such as the console, a file, or a telemetry pipeline. These libraries give developers the records they need to trace errors in production services."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "JavaScript logging libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#debug",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F104"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F105"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F113"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F108"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F106"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#obug",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F122"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F123"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F126"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F124"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#opentelemetry-sdk-logs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F141"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pino",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F161"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#consola",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F177"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sentry-node",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F196"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#winston",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F211"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#loglevel",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F223"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#debug",
          "label": [
            {
              "t": "text",
              "text": "debug"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F105"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Severity levels",
            "Built-in local JSON lines"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#debug",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F104"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F114"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F115"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#obug",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F122"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F132"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F133"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#opentelemetry-sdk-logs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F141"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pino",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F161"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#consola",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F177"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#sentry-node",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F196"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#winston",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F211"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#loglevel",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F223"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "debug",
          "name": [
            {
              "t": "fact",
              "fact": "F104"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/debug-js/debug"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/debug"
            },
            {
              "label": "Docs",
              "href": "https://github.com/debug-js/debug#readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F111"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F105"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F113"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F107"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F106"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/debug-js/debug#readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F104"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F120"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F121"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/expressjs/express",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F120"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "function set(setting, val) {\n  if (arguments.length === 1) {\n    // app.get(setting)\n    return this.settings[setting];\n  }\n\n  debug('set \"%s\" to %o', setting, val);\n\n  // set value\n  this.settings[setting] = val;\n\n  // trigger matched settings\n  switch (setting) {\n    case 'etag':\n      this.set('etag fn', compileETag(val));\n      break;\n    case 'query parser':\n      this.set('query parser fn', compileQueryParser(val));\n      break;\n    case 'trust proxy':\n      this.set('trust proxy fn', compileTrust(val));\n\n      // trust proxy inherit back-compat\n      Object.defineProperty(this.settings, trustProxyDefaultSymbol, {\n        configurable: true,\n        value: false\n      });\n\n      break;\n  }\n\n  return this;\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/expressjs/express/blob/43fca52d28a422c8be48fd489cbd4f2d6152bab6/lib/application.js#L351-L383",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F119"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=debug%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F104"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const debug = require('debug')('app');\ndebug('hello');\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/debug@4.4.3/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F109"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "obug",
          "name": [
            {
              "t": "fact",
              "fact": "F122"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/sxzz/obug"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/obug"
            },
            {
              "label": "Docs",
              "href": "https://github.com/sxzz/obug#readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F129"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F123"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F131"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F125"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F124"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/sxzz/obug#readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F122"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F140"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/vitejs/vite",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F139"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export function createDebugger(\n  namespace: ViteDebugScope,\n  options: DebuggerOptions = {},\n): Debugger['log'] | undefined {\n  const log = debug(namespace)\n  const { onlyWhenFocused, depth } = options\n\n  if (depth && log.inspectOpts && log.inspectOpts.depth == null) {\n    log.inspectOpts.depth = options.depth\n  }\n\n  let enabled = log.enabled\n  if (enabled && onlyWhenFocused) {\n    const ns = typeof onlyWhenFocused === 'string' ? onlyWhenFocused : namespace\n    enabled = !!DEBUG?.includes(ns)\n  }\n\n  if (enabled) {\n    return (...args: [string, ...any[]]) => {\n      if (!filter || args.some((a) => a?.includes?.(filter))) {\n        log(...args)\n      }\n    }\n  }\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/vitejs/vite/blob/760a953fd4b4d1dd58b2652d5962af50a7510d5c/packages/vite/src/node/utils.ts#L191-L215",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F138"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=obug%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F122"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { createDebug } from 'obug';\nconst debug = createDebug('app');\ndebug('hello');\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/obug@3.0.0/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F127"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "opentelemetry-sdk-logs",
          "name": [
            {
              "t": "fact",
              "fact": "F141"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/open-telemetry/opentelemetry-js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@opentelemetry/sdk-logs"
            },
            {
              "label": "Docs",
              "href": "https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/sdk-logs"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F148"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/sdk-logs",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F141"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/VoltAgent/voltagent",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F159"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async shutdown(): Promise<void> {\n    await this.provider.shutdown();\n    await this.loggerProvider.shutdown();\n\n    const destroy = (this.storage as any)?.destroy;\n    if (typeof destroy === \"function\") {\n      destroy.call(this.storage);\n    }\n  }",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/VoltAgent/voltagent/blob/e9fc599f6059afcd88b34f2bfc50d0d1d6a0877c/packages/core/src/observability/serverless/volt-agent-observability.ts#L396-L404",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F158"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40opentelemetry/sdk-logs%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F141"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const { SeverityNumber } = require('@opentelemetry/api');\nconst { LoggerProvider, SimpleLogRecordProcessor, ConsoleLogRecordExporter } = require('@opentelemetry/sdk-logs');\nconst provider = new LoggerProvider({\n  processors: [new SimpleLogRecordProcessor({ exporter: new ConsoleLogRecordExporter() })],\n});\nconst logger = provider.getLogger('example');\nlogger.emit({ severityNumber: SeverityNumber.INFO, body: 'hello' });\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/@opentelemetry/sdk-logs@3.1.1/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F146"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pino",
          "name": [
            {
              "t": "fact",
              "fact": "F161"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pinojs/pino"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/pino"
            },
            {
              "label": "Docs",
              "href": "https://getpino.io"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F12"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://getpino.io",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F161"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F20"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/payloadcms/payload",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F175"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export const getLogger = (name = 'payload', logger?: Config['logger']): PayloadLogger => {\n  if (!logger) {\n    return pino(defaultLoggerOptions)\n  }\n\n  // Synchronous logger used by bin scripts\n  if (logger === 'sync') {\n    return pino(prettySyncLoggerDestination)\n  }\n\n  // Check if logger is an object\n  if ('options' in logger) {\n    const { destination, options } = logger\n\n    if (!options.name) {\n      options.name = name\n    }\n\n    if (!options.enabled) {\n      options.enabled = process.env.DISABLE_LOGGING !== 'true'\n    }\n\n    return pino(options, destination)\n  } else {\n    // Instantiated logger\n    return logger\n  }\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/payloadcms/payload/blob/7a80820ce48dc71420d92e32ca076dc7d004375e/packages/payload/src/utilities/logger.ts#L26-L53",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F174"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20projects%20that%20use%20pino&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F161"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const logger = require('pino')();\nlogger.info('hello world');\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/pino@10.4.0/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F166"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "consola",
          "name": [
            {
              "t": "fact",
              "fact": "F177"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/unjs/consola"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/consola"
            },
            {
              "label": "Docs",
              "href": "https://github.com/unjs/consola#readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F184"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/unjs/consola#readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F177"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/unjs/unbuild",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F194"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async function _build(\n  rootDir: string,\n  inputConfig: BuildConfig = {},\n  buildConfig: BuildConfig,\n  pkg: PackageJson & Partial<Record<\"unbuild\" | \"build\", BuildConfig>>,\n  cleanedDirs: string[],\n  _stubMode: boolean,\n  _watchMode: boolean,\n): Promise<void> {\n  // Resolve preset\n  const preset = await resolvePreset(\n    buildConfig.preset ||\n      pkg.unbuild?.preset ||\n      pkg.build?.preset ||\n      inputConfig.preset ||\n      \"auto\",\n    rootDir,\n  );\n\n  // Merge options\n  const options = defu(\n    buildConfig,\n    pkg.unbuild || pkg.build,\n    inputConfig,\n    preset,\n    {\n      name: (pkg?.name || \"\").split(\"/\").pop() || \"default\",\n      rootDir,\n      entries: [],\n      clean: true,\n      declaration: undefined,\n      outDir: \"dist\",\n      stub: _stubMode,\n      stubOptions: {\n        /**\n         * See https://github.com/unjs/jiti#%EF%B8%8F-options\n         */\n        jiti: {\n          interopDefault: true,\n          alias: {},\n        },\n      },\n      watch: _watchMode,\n      watchOptions: _watchMode\n        ? {\n            exclude: \"node_modules/**\",\n            include: \"src/**\",\n          }\n        : undefined,\n      externals: [\n        ...Module.builtinModules,\n        ...Module.builtinModules.map((m) => \"node:\" + m),\n      ],\n      dependencies: [],\n      devDependencies: [],\n      peerDependencies: [],\n      alias: {},\n      replace: {},\n      failOnWarn: true,\n      sourcemap: false,\n      rollup: {\n        emitCJS: false,\n        watch: false,\n        cjsBridge: false,\n        inlineDependencies: false,\n        preserveDynamicImports: true,\n        output: {\n          // https://v8.dev/features/import-attributes\n          importAttributesKey: \"with\",\n        },\n        // Plugins\n        replace: {\n          preventAssignment: true,\n        },\n        alias: {},\n        resolve: {\n          preferBuiltins: true,\n        },\n        json: {\n          preferConst: true,\n        },\n        commonjs: {\n          ignoreTryCatch: true,\n        },\n        esbuild: { target: \"esnext\" },\n        dts: {\n          compilerOptions: {\n            // https://github.com/Swatinem/rollup-plugin-dts/issues/143\n            preserveSymlinks: false,\n            // https://github.com/Swatinem/rollup-plugin-dts/issues/127\n            composite: false,\n          },\n          respectExternal: true,\n        },\n      },\n      parallel: false,\n    } satisfies BuildOptions,\n  ) as BuildOptions;\n\n  // Resolve dirs relative to rootDir\n  options.outDir = resolve(options.rootDir, options.outDir);\n\n  // Create shared jiti instance for context\n  const jiti = createJiti(options.rootDir, { interopDefault: true });\n\n  // Build context\n  const ctx: BuildContext = {\n    options,\n    jiti,\n    warnings: new Set(),\n    pkg,\n    buildEntries: [],\n    usedImports: new Set(),\n    hooks: createHooks(),\n  };\n\n  // Register hooks\n  if (preset.hooks) {\n    ctx.hooks.addHooks(preset.hooks);\n  }\n  if (inputConfig.hooks) {\n    ctx.hooks.addHooks(inputConfig.hooks);\n  }\n  if (buildConfig.hooks) {\n    ctx.hooks.addHooks(buildConfig.hooks);\n  }\n\n  // Allow prepare and extending context\n  await ctx.hooks.callHook(\"build:prepare\", ctx);\n\n  // Normalize entries\n  options.entries = options.entries.map((entry) =>\n    typeof entry === \"string\" ? { input: entry } : entry,\n  );\n\n  for (const entry of options.entries) {\n    if (typeof entry.name !== \"string\") {\n      let relativeInput = isAbsolute(entry.input)\n        ? relative(rootDir, entry.input)\n        : normalize(entry.input);\n      if (relativeInput.startsWith(\"./\")) {\n        relativeInput = relativeInput.slice(2);\n      }\n      entry.name = removeExtension(relativeInput.replace(/^src\\//, \"\"));\n    }\n\n    if (!entry.input) {\n      throw new Error(\"Missing entry input: \" + dumpObject(entry));\n    }\n\n    if (!entry.builder) {\n      entry.builder = entry.input.endsWith(\"/\") ? \"mkdist\" : \"rollup\";\n    }\n\n    if (options.declaration !== undefined && entry.declaration === undefined) {\n      entry.declaration = options.declaration;\n    }\n\n    entry.input = resolve(options.rootDir, entry.input);\n    entry.outDir = resolve(options.rootDir, entry.outDir || options.outDir);\n  }\n\n  // Infer dependencies from pkg\n  options.dependencies = Object.keys(pkg.dependencies || {});\n  options.peerDependencies = Object.keys(pkg.peerDependencies || {});\n  options.devDependencies = Object.keys(pkg.devDependencies || {});\n\n  // Add all dependencies as externals\n  options.externals.push(...inferPkgExternals(pkg));\n  options.externals = [...new Set(options.externals)];\n\n  // Call build:before\n  await ctx.hooks.callHook(\"build:before\", ctx);\n\n  // Start info\n  consola.info(\n    colors.cyan(`${options.stub ? \"Stubbing\" : \"Building\"} ${options.name}`),\n  );\n  if (process.env.DEBUG) {\n    consola.info(`${colors.bold(\"Root dir:\")} ${options.rootDir}\n  ${colors.bold(\"Entries:\")}\n  ${options.entries.map((entry) => \"  \" + dumpObject(entry)).join(\"\\n  \")}\n`);\n  }\n\n  // Clean dist dirs\n  if (options.clean) {\n    for (const dir of new Set(\n      options.entries\n        .map((e) => e.outDir)\n        .filter((p): p is NonNullable<typeof p> => !!p)\n        .sort(),\n    )) {\n      if (\n        dir === options.rootDir ||\n        options.rootDir.startsWith(withTrailingSlash(dir)) ||\n        cleanedDirs.some((c) => dir.startsWith(c))\n      ) {\n        continue;\n      }\n      cleanedDirs.push(dir);\n      consola.info(\n        `Cleaning dist directory: \\`./${relative(process.cwd(), dir)}\\``,\n      );\n      await rmdir(dir);\n      await fsp.mkdir(dir, { recursive: true });\n    }\n  }\n\n  // Try to selflink\n  // if (ctx.stub && ctx.pkg.name) {\n  //   const nodemodulesDir = resolve(ctx.rootDir, 'node_modules', ctx.pkg.name)\n  //   await symlink(resolve(ctx.rootDir), nodemodulesDir).catch(() => {})\n  // }\n\n  const buildTasks = [\n    typesBuild, // untyped\n    mkdistBuild, // mkdist\n    rollupBuild, // rollup\n    copyBuild, // copy\n  ] as const;\n\n  if (options.parallel) {\n    await Promise.all(buildTasks.map((task) => task(ctx)));\n  } else {\n    for (const task of buildTasks) {\n      await task(ctx);\n    }\n  }\n\n  // Skip rest for stub and watch mode\n  if (options.stub || options.watch) {\n    await ctx.hooks.callHook(\"build:done\", ctx);\n    return;\n  }\n\n  // Done info\n  consola.success(colors.green(\"Build succeeded for \" + options.name));\n\n  // Find all dist files and add missing entries as chunks\n  const outFiles = await glob([\"**\"], { cwd: options.outDir });\n  for (const file of outFiles) {\n    let entry = ctx.buildEntries.find((e) => e.path === file);\n    if (!entry) {\n      entry = {\n        path: file,\n        chunk: true,\n      };\n      ctx.buildEntries.push(entry);\n    }\n    if (!entry.bytes) {\n      const stat = await fsp.stat(resolve(options.outDir, file));\n      entry.bytes = stat.size;\n    }\n  }\n\n  const rPath = (p: string): string =>\n    relative(process.cwd(), resolve(options.outDir, p));\n  for (const entry of ctx.buildEntries.filter((e) => !e.chunk)) {\n    let totalBytes = entry.bytes || 0;\n    for (const chunk of entry.chunks || []) {\n      totalBytes += ctx.buildEntries.find((e) => e.path === chunk)?.bytes || 0;\n    }\n    let line =\n      `  ${colors.bold(rPath(entry.path))} (` +\n      [\n        totalBytes && `total size: ${colors.cyan(prettyBytes(totalBytes))}`,\n        entry.bytes && `chunk size: ${colors.cyan(prettyBytes(entry.bytes))}`,\n        entry.exports?.length &&\n          `exports: ${colors.gray(entry.exports.join(\", \"))}`,\n      ]\n        .filter(Boolean)\n        .join(\", \") +\n      \")\";\n    if (entry.chunks?.length) {\n      line +=\n        \"\\n\" +\n        entry.chunks\n          .map((p) => {\n            const chunk =\n              ctx.buildEntries.find((e) => e.path === p) || ({} as any);\n            return colors.gray(\n              \"  └─ \" +\n                rPath(p) +\n                colors.bold(\n                  chunk.bytes ? ` (${prettyBytes(chunk?.bytes)})` : \"\",\n                ),\n            );\n          })\n          .join(\"\\n\");\n    }\n    if (entry.modules?.length) {\n      line +=\n        \"\\n\" +\n        entry.modules\n          .filter((m) => m.id.includes(\"node_modules\"))\n          .sort((a, b) => (b.bytes || 0) - (a.bytes || 0))\n          .map((m) => {\n            return colors.gray(\n              \"  📦 \" +\n                rPath(m.id) +\n                colors.bold(m.bytes ? ` (${prettyBytes(m.bytes)})` : \"\"),\n            );\n          })\n          .join(\"\\n\");\n    }\n    consola.log(entry.chunk ? colors.gray(line) : line);\n  }\n  console.log(\n    \"Σ Total dist size (byte size):\",\n    colors.cyan(\n      prettyBytes(ctx.buildEntries.reduce((a, e) => a + (e.bytes || 0), 0)),\n    ),\n  );\n\n  // Validate\n  validateDependencies(ctx);\n  validatePackage(pkg, rootDir, ctx);\n\n  // Call build:done\n  await ctx.hooks.callHook(\"build:done\", ctx);\n\n  consola.log(\"\");\n\n  if (ctx.warnings.size > 0) {\n    consola.warn(\n      \"Build is done with some warnings:\\n\\n\" +\n        [...ctx.warnings].map((msg) => \"- \" + msg).join(\"\\n\"),\n    );\n    if (ctx.options.failOnWarn) {\n      consola.error(\n        \"Exiting with code (1). You can change this behavior by setting `failOnWarn: false` .\",\n      );\n      // eslint-disable-next-line unicorn/no-process-exit\n      process.exit(1);\n    }\n  }\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/unjs/unbuild/blob/cf1c30333df2d6b19e6208f67157024975bdba82/src/build.ts#L78-L415",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F193"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=consola%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F177"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { consola } from 'consola';\nconsola.info('hello');\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/consola@3.4.2/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F182"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "sentry-node",
          "name": [
            {
              "t": "fact",
              "fact": "F196"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/getsentry/sentry-javascript"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@sentry/node"
            },
            {
              "label": "Docs",
              "href": "https://github.com/getsentry/sentry-javascript/tree/master/packages/node"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F203"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/getsentry/sentry-javascript/tree/master/packages/node",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F196"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import * as Sentry from '@sentry/node';\nSentry.init({ dsn: process.env.SENTRY_DSN });\nSentry.logger.info('hello');\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.sentry.io/platforms/javascript/migration/v10-to-v11/",
                  "label": [
                    {
                      "t": "text",
                      "text": "Core API"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40sentry/node%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F196"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F201"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "winston",
          "name": [
            {
              "t": "fact",
              "fact": "F211"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/winstonjs/winston"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/winston"
            },
            {
              "label": "Docs",
              "href": "https://github.com/winstonjs/winston#readme"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F38"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/winstonjs/winston#readme",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F211"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const winston = require('winston');\nconst logger = winston.createLogger({\n  format: winston.format.json(),\n  transports: [new winston.transports.Console()],\n});\nlogger.info('hello');\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/winston@3.19.0/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20projects%20that%20use%20winston&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F211"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F216"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "loglevel",
          "name": [
            {
              "t": "fact",
              "fact": "F223"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pimterry/loglevel"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/loglevel"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F230"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/pimterry/loglevel",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F223"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/matrix-org/matrix-js-sdk",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F239"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "function getPrefixedLogger(prefix?: string): PrefixedLogger {\n    const loggerName = DEFAULT_NAMESPACE + (prefix === undefined ? \"\" : `-${prefix}`);\n    const prefixLogger = loglevel.getLogger(loggerName) as PrefixedLogger;\n\n    if (prefixLogger.getChild === undefined) {\n        // This is a new loglevel Logger which has not been turned into a PrefixedLogger yet.\n        prefixLogger.prefix = prefix;\n        prefixLogger.getChild = (childPrefix): Logger => {\n            // create the new child logger\n            const childLogger = getPrefixedLogger((prefix ?? \"\") + childPrefix);\n            // Assign the methodFactory from the parent logger.\n            // This is useful if we add extensions to the parent logger that modifies\n            // its methodFactory. (An example extension is: storing each log to a rageshake db)\n            childLogger.methodFactory = prefixLogger.methodFactory;\n            // Rebuild the child logger with the new methodFactory.\n            childLogger.rebuild();\n            return childLogger;\n        };\n        prefixLogger.setLevel(loglevel.levels.DEBUG, false);\n    }\n\n    return prefixLogger;\n}",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/matrix-org/matrix-js-sdk/blob/f6afaad029ebc4f2c15c269d7e2167d67454dbbc/src/logger.ts#L134-L156",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F238"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=loglevel%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F223"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const log = require('loglevel');\nlog.setLevel('info');\nlog.info('hello');\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://cdn.jsdelivr.net/npm/loglevel@1.9.2/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F228"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which JavaScript logging library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#pino",
          "label": [
            {
              "t": "text",
              "text": "Pino"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits Node.js services that write structured JSON logs. "
        },
        {
          "t": "link",
          "href": "#winston",
          "label": [
            {
              "t": "text",
              "text": "Winston"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits apps that route logs to several destinations with separate formats. "
        },
        {
          "t": "link",
          "href": "#debug",
          "label": [
            {
              "t": "text",
              "text": "debug"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits libraries that print diagnostics only when a namespace is enabled."
        }
      ]
    },
    {
      "q": "Pino vs Winston: which should I use?",
      "a": [
        {
          "t": "link",
          "href": "#pino",
          "label": [
            {
              "t": "text",
              "text": "Pino"
            }
          ]
        },
        {
          "t": "text",
          "text": " writes JSON log lines with child loggers that add context to each record. "
        },
        {
          "t": "link",
          "href": "#winston",
          "label": [
            {
              "t": "text",
              "text": "Winston"
            }
          ]
        },
        {
          "t": "text",
          "text": " routes each log event through configurable formats and multiple transports."
        }
      ]
    },
    {
      "q": "What is Consola?",
      "a": [
        {
          "t": "link",
          "href": "#consola",
          "label": [
            {
              "t": "text",
              "text": "Consola"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a console wrapper for human-facing CLI logs. Custom reporters change how it prints or serializes each log object."
        }
      ]
    },
    {
      "q": "What is loglevel?",
      "a": [
        {
          "t": "link",
          "href": "#loglevel",
          "label": [
            {
              "t": "text",
              "text": "loglevel"
            }
          ]
        },
        {
          "t": "text",
          "text": " adds log level methods to any available console.log method. It supports named loggers with severity filtering."
        }
      ]
    },
    {
      "q": "How do I send Node.js logs to Sentry?",
      "a": [
        {
          "t": "text",
          "text": "The "
        },
        {
          "t": "link",
          "href": "#sentry-node",
          "label": [
            {
              "t": "text",
              "text": "Sentry Node SDK"
            }
          ]
        },
        {
          "t": "text",
          "text": " captures log records through its logger methods or its logging integrations."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, pino",
      "display": "Pino",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, pino",
      "display": "274.0M",
      "asOf": "2026-11-10"
    },
    "F3": {
      "label": "License, pino",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, pino",
      "display": "10.4.0, Oct 2026",
      "asOf": "2026-10-02"
    },
    "F5": {
      "label": "Package release date, pino",
      "display": "Oct 2026",
      "asOf": "2026-10-02"
    },
    "F6": {
      "label": "Repository stars, pino",
      "display": "18.3K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Child loggers, pino",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Multiple destinations, pino",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Custom levels, pino",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Output formats, pino",
      "display": "JSON",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Install, pino",
      "display": "npm install pino",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "What it does, pino",
      "display": "Writes JSON log lines with configurable levels and contextual child loggers.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, pino",
      "display": "Redacts selected object fields",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, pino",
      "display": "Configure redaction paths to censor or remove selected values.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths lead, pino",
      "display": "Binds context through child loggers",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths, pino",
      "display": "Attach shared fields to every log line from a child logger.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, pino",
      "display": "Redaction paths are case sensitive",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, pino",
      "display": "Match each field name’s exact casing in redaction paths.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations lead, pino",
      "display": "Multistream needs the lowest threshold",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations, pino",
      "display": "Set the parent level low enough for every destination’s required messages.",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Quickstart, pino",
      "display": "const logger = require('pino')()\n\nlogger.info('hello world')\n\nconst child = logger.child({ a: 'property' })\nchild.info('hello child!')\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function, pino",
      "display": "export const getLogger = (name = 'payload', logger?: Config['logger']): PayloadLogger => {\n  if (!logger) {\n    return pino(defaultLoggerOptions)\n  }\n\n  // Synchronous logger used by bin scripts\n  if (logger === 'sync') {\n    return pino(prettySyncLoggerDestination)\n  }\n\n  // Check if logger is an object\n  if ('options' in logger) {\n    const { destination, options } = logger\n\n    if (!options.name) {\n      options.name = name\n    }\n\n    if (!options.enabled) {\n      options.enabled = process.env.DISABLE_LOGGING !== 'true'\n    }\n\n    return pino(options, destination)\n  } else {\n    // Instantiated logger\n    return logger\n  }\n}\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function reference, pino",
      "display": "logger.ts · getLogger()",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project repository, pino",
      "display": "payloadcms/payload",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project stars, payloadcms/payload",
      "display": "45.8K",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project push date, payloadcms/payload",
      "display": "Nov 2026",
      "asOf": "2026-11-12"
    },
    "F27": {
      "label": "Library name, winston",
      "display": "Winston",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Monthly downloads, winston",
      "display": "130.4M",
      "asOf": "2026-11-10"
    },
    "F29": {
      "label": "License, winston",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Package release, winston",
      "display": "3.19.0, Dec 2025",
      "asOf": "2025-12-07"
    },
    "F31": {
      "label": "Package release date, winston",
      "display": "Dec 2025",
      "asOf": "2025-12-07"
    },
    "F32": {
      "label": "Repository stars, winston",
      "display": "24.5K",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Child loggers, winston",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Multiple destinations, winston",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Custom levels, winston",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Output formats, winston",
      "display": "JSON",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "Install, winston",
      "display": "npm install winston",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "What it does, winston",
      "display": "Routes log events through configurable formats and transports.",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths lead, winston",
      "display": "Combines multiple transports",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths, winston",
      "display": "Send one logger’s events to multiple destinations with separate thresholds.",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths lead, winston",
      "display": "Defines application-specific severity levels",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "strengths, winston",
      "display": "Configure custom logging levels when creating a logger.",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations lead, winston",
      "display": "Default logger needs configured transports",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations, winston",
      "display": "Add transports before using the default logger to avoid buffered log buildup.",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "Quickstart, winston",
      "display": "const winston = require('winston');\n\nconst logger = winston.createLogger({\n  level: 'info',\n  format: winston.format.json(),\n  defaultMeta: { service: 'user-service' },\n  transports: [\n    //\n    // - Write all logs with importance level of `error` or higher to `error.log`\n    //   (i.e., error, fatal, but not other levels)\n    //\n    new winston.transports.File({ filename: 'error.log', level: 'error' }),\n    //\n    // - Write all logs with importance level of `info` or higher to `combined.log`\n    //   (i.e., fatal, error, warn, and info, but not trace)\n    //\n    new winston.transports.File({ filename: 'combined.log' }),\n  ],\n});\n\n//\n// If we're not in production then log to the `console` with the format:\n// `${info.level}: ${info.message} JSON.stringify({ ...rest }) `\n//\nif (process.env.NODE_ENV !== 'production') {\n  logger.add(new winston.transports.Console({\n    format: winston.format.simple(),\n  }));\n}\n\n//\n// Logging\n//\nlogger.log({\n  level: 'info',\n  message: 'Hello distributed log files!'\n});\n\nlogger.info('Hello again distributed logs');\n",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Project function, winston",
      "display": "(\n  filename: string,\n  fileTransportOptions: transports.FileTransportOptions = {},\n  options?: OutputFileLoggerOptions\n): LoggerOptions => {\n  const consoleLevel = options?.consoleLevel ?? LEVEL_LABEL;\n\n  return {\n    level: LEVEL_LABEL,\n    levels: LEVELS,\n    format: prettyPrint(),\n    transports: [\n      new transports.Console({\n        level: consoleLevel,\n      }),\n      new transports.File({\n        level: 'error',\n        filename,\n        format: excludeColors,\n        ...fileTransportOptions,\n      }),\n    ],\n  };\n}\n",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project function reference, winston",
      "display": "output-file-configuration.ts · configureFileLogging()",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project repository, winston",
      "display": "strapi/strapi",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project stars, strapi/strapi",
      "display": "73.5K",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project push date, strapi/strapi",
      "display": "Nov 2026",
      "asOf": "2026-11-12"
    },
    "F51": {
      "label": "Library name, log4js",
      "display": "Log4js",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Monthly downloads, log4js",
      "display": "32.8M",
      "asOf": "2026-11-10"
    },
    "F53": {
      "label": "License, log4js",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Package release, log4js",
      "display": "6.9.1",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Undated package release, log4js",
      "display": "v6.9.1",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Repository stars, log4js",
      "display": "5.8K",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Multiple destinations, log4js",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Custom levels, log4js",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Install, log4js",
      "display": "npm install log4js",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "What it does, log4js",
      "display": "Routes category-based log events through configured appenders.",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "strengths lead, log4js",
      "display": "Routes events by logger category",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "strengths, log4js",
      "display": "Give categories separate appenders and minimum severity thresholds.",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "strengths lead, log4js",
      "display": "Supports application-defined logging levels",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "strengths, log4js",
      "display": "Define custom levels and place them among the standard severity levels.",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "limitations lead, log4js",
      "display": "Shutdown must flush pending events",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "limitations, log4js",
      "display": "Wait for shutdown’s callback before exiting when appenders have pending writes.",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "Quickstart, log4js",
      "display": "const log4js = require(\"log4js\");\nlog4js.configure({\n  appenders: { cheese: { type: \"file\", filename: \"cheese.log\" } },\n  categories: { default: { appenders: [\"cheese\"], level: \"error\" } },\n});\n\nconst logger = log4js.getLogger(\"cheese\");\nlogger.trace(\"Entering cheese testing\");\nlogger.debug(\"Got cheese.\");\nlogger.info(\"Cheese is Comté.\");\nlogger.warn(\"Cheese is quite smelly.\");\nlogger.error(\"Cheese is too ripe!\");\nlogger.fatal(\"Cheese was breeding ground for listeria.\");\n",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "Project function, log4js",
      "display": "const initLogging = (config: any) => {\n    // log4js.configure() modifies settings.logconfig so check for equality first.\n    log4js.configure(config);\n    log4js.getLogger('console');\n\n    // Overwrites for console output methods\n    console.debug = logger.debug.bind(logger);\n    console.log = logger.info.bind(logger);\n    console.warn = logger.warn.bind(logger);\n    console.error = logger.error.bind(logger);\n};\n",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "Project function reference, log4js",
      "display": "Settings.ts · initLogging()",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "Project repository, log4js",
      "display": "ether/etherpad",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Project stars, ether/etherpad",
      "display": "18.6K",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Project push date, ether/etherpad",
      "display": "Nov 2026",
      "asOf": "2026-11-11"
    },
    "F73": {
      "label": "Library name, bunyan",
      "display": "Bunyan",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Monthly downloads, bunyan",
      "display": "19.7M",
      "asOf": "2026-11-10"
    },
    "F75": {
      "label": "License, bunyan",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Package release, bunyan",
      "display": "1.8.15",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Undated package release, bunyan",
      "display": "v1.8.15",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Repository stars, bunyan",
      "display": "7.2K",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Child loggers, bunyan",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Multiple destinations, bunyan",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Output formats, bunyan",
      "display": "JSON",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Install, bunyan",
      "display": "npm install bunyan",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "What it does, bunyan",
      "display": "Writes structured JSON log records for Node.js services.",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "strengths lead, bunyan",
      "display": "Keeps logs structured as JSON",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "strengths, bunyan",
      "display": "Emit log records as JSON for downstream processing.",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "strengths lead, bunyan",
      "display": "Adds context with child loggers",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "strengths, bunyan",
      "display": "Bind component-specific fields to each record from a child logger.",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "limitations lead, bunyan",
      "display": "Rotation requires separate process paths",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "limitations, bunyan",
      "display": "Give each cluster process its own rotating-file path.",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "Quickstart, bunyan",
      "display": "var bunyan = require('bunyan');\nvar log = bunyan.createLogger({name: 'myapp'});\n\nfunction Wuzzle(options) {\n    this.log = options.log.child({widget_type: 'wuzzle'});\n    this.log.info('creating a wuzzle')\n}\nWuzzle.prototype.woos = function () {\n    this.log.warn('This wuzzle is woosey.')\n}\n\nlog.info('start');\nvar wuzzle = new Wuzzle({log: log});\nwuzzle.woos();\nlog.info('done');\n",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "Developer need",
      "display": "Structured logs with redaction",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "Why choose pino",
      "display": "path-based redaction",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "Developer need in introduction",
      "display": "structured logs with redaction",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "Developer need",
      "display": "Several logging destinations",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "Why choose winston",
      "display": "multiple transports",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Developer need in introduction",
      "display": "several logging destinations",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Developer need",
      "display": "JSON logs with component context",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Why choose bunyan",
      "display": "structured records",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Developer need in introduction",
      "display": "JSON logs with component context",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Developer need",
      "display": "Category-based log routing",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Why choose log4js",
      "display": "configured appenders",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Developer need in introduction",
      "display": "category-based log routing",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Page introduction",
      "display": "JavaScript logging libraries let developers record application events and errors.",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Library name, debug",
      "display": "debug",
      "asOf": "2026-11-20"
    },
    "F105": {
      "label": "Monthly downloads, debug",
      "display": "3.7B",
      "asOf": "2026-11-20"
    },
    "F106": {
      "label": "License, debug",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F107": {
      "label": "Package release, debug",
      "display": "4.4.3",
      "asOf": "2026-11-20"
    },
    "F108": {
      "label": "Package release date, debug",
      "display": "Sep 2025",
      "asOf": "2026-11-20"
    },
    "F109": {
      "label": "Install, debug",
      "display": "npm install debug",
      "asOf": "2026-11-20"
    },
    "F110": {
      "label": "Quickstart, debug",
      "display": "const debug = require('debug')('app');\ndebug('hello');\n",
      "asOf": "2026-11-20"
    },
    "F111": {
      "label": "Official description, debug",
      "display": "Provides a debugging utility for Node.js and the browser.",
      "asOf": "2026-11-20"
    },
    "F112": {
      "label": "Quickstart source file, debug",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F113": {
      "label": "Repository stars, debug",
      "display": "11.5K",
      "asOf": "2026-11-20"
    },
    "F114": {
      "label": "Severity levels, debug",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F115": {
      "label": "Built-in local JSON lines, debug",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F116": {
      "label": "Primary logging role, debug",
      "display": "Namespace-gated diagnostics",
      "asOf": "2026-11-20"
    },
    "F117": {
      "label": "Enablement, debug",
      "display": "DEBUG namespace filter",
      "asOf": "2026-11-20"
    },
    "F118": {
      "label": "Project function, debug",
      "display": "function set(setting, val) {\n  if (arguments.length === 1) {\n    // app.get(setting)\n    return this.settings[setting];\n  }\n\n  debug('set \"%s\" to %o', setting, val);\n\n  // set value\n  this.settings[setting] = val;\n\n  // trigger matched settings\n  switch (setting) {\n    case 'etag':\n      this.set('etag fn', compileETag(val));\n      break;\n    case 'query parser':\n      this.set('query parser fn', compileQueryParser(val));\n      break;\n    case 'trust proxy':\n      this.set('trust proxy fn', compileTrust(val));\n\n      // trust proxy inherit back-compat\n      Object.defineProperty(this.settings, trustProxyDefaultSymbol, {\n        configurable: true,\n        value: false\n      });\n\n      break;\n  }\n\n  return this;\n}",
      "asOf": "2026-11-20"
    },
    "F119": {
      "label": "Project source file, debug",
      "display": "lib/application.js",
      "asOf": "2026-11-20"
    },
    "F120": {
      "label": "Project full_name, debug",
      "display": "expressjs/express",
      "asOf": "2026-11-20"
    },
    "F121": {
      "label": "Project stargazers_count, debug",
      "display": "69.6K",
      "asOf": "2026-11-20"
    },
    "F122": {
      "label": "Library name, obug",
      "display": "obug",
      "asOf": "2026-11-20"
    },
    "F123": {
      "label": "Monthly downloads, obug",
      "display": "623.4M",
      "asOf": "2026-11-20"
    },
    "F124": {
      "label": "License, obug",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F125": {
      "label": "Package release, obug",
      "display": "3.0.0",
      "asOf": "2026-11-20"
    },
    "F126": {
      "label": "Package release date, obug",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F127": {
      "label": "Install, obug",
      "display": "npm install obug",
      "asOf": "2026-11-20"
    },
    "F128": {
      "label": "Quickstart, obug",
      "display": "import { createDebug } from 'obug';\nconst debug = createDebug('app');\ndebug('hello');\n",
      "asOf": "2026-11-20"
    },
    "F129": {
      "label": "Official description, obug",
      "display": "Forks debug with TypeScript and ESM support.",
      "asOf": "2026-11-20"
    },
    "F130": {
      "label": "Quickstart source file, obug",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F131": {
      "label": "Repository stars, obug",
      "display": "92",
      "asOf": "2026-11-20"
    },
    "F132": {
      "label": "Severity levels, obug",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F133": {
      "label": "Built-in local JSON lines, obug",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Primary logging role, obug",
      "display": "TypeScript/ESM namespace debugger",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Enablement and runtime, obug",
      "display": "DEBUG environment/localStorage; native ESM",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Runtime engine, obug",
      "display": "{\"node\": \">=12.20.0\"}",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Project function, obug",
      "display": "export function createDebugger(\n  namespace: ViteDebugScope,\n  options: DebuggerOptions = {},\n): Debugger['log'] | undefined {\n  const log = debug(namespace)\n  const { onlyWhenFocused, depth } = options\n\n  if (depth && log.inspectOpts && log.inspectOpts.depth == null) {\n    log.inspectOpts.depth = options.depth\n  }\n\n  let enabled = log.enabled\n  if (enabled && onlyWhenFocused) {\n    const ns = typeof onlyWhenFocused === 'string' ? onlyWhenFocused : namespace\n    enabled = !!DEBUG?.includes(ns)\n  }\n\n  if (enabled) {\n    return (...args: [string, ...any[]]) => {\n      if (!filter || args.some((a) => a?.includes?.(filter))) {\n        log(...args)\n      }\n    }\n  }\n}",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Project source file, obug",
      "display": "packages/vite/src/node/utils.ts",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Project full_name, obug",
      "display": "vitejs/vite",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Project stargazers_count, obug",
      "display": "84.0K",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Library name, @opentelemetry/sdk-logs",
      "display": "@opentelemetry/sdk-logs",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Monthly downloads, @opentelemetry/sdk-logs",
      "display": "322.0M",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "License, @opentelemetry/sdk-logs",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Package release, @opentelemetry/sdk-logs",
      "display": "3.1.1",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Package release date, @opentelemetry/sdk-logs",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Install, @opentelemetry/sdk-logs",
      "display": "npm install @opentelemetry/api @opentelemetry/sdk-logs",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Quickstart, @opentelemetry/sdk-logs",
      "display": "const { SeverityNumber } = require('@opentelemetry/api');\nconst { LoggerProvider, SimpleLogRecordProcessor, ConsoleLogRecordExporter } = require('@opentelemetry/sdk-logs');\nconst provider = new LoggerProvider({\n  processors: [new SimpleLogRecordProcessor({ exporter: new ConsoleLogRecordExporter() })],\n});\nconst logger = provider.getLogger('example');\nlogger.emit({ severityNumber: SeverityNumber.INFO, body: 'hello' });\n",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Official description, @opentelemetry/sdk-logs",
      "display": "Provides the OpenTelemetry SDK for log records.",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Quickstart source file, @opentelemetry/sdk-logs",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Repository stars, @opentelemetry/sdk-logs",
      "display": "3.5K",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Severity levels, @opentelemetry/sdk-logs",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Built-in local JSON lines, @opentelemetry/sdk-logs",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Primary logging role, @opentelemetry/sdk-logs",
      "display": "Provider, processors, and exporters for manual log records",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Automatic capture, @opentelemetry/sdk-logs",
      "display": "Manual instrumentation; no automatic host capture",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Current processor construction, @opentelemetry/sdk-logs",
      "display": "SimpleLogRecordProcessor accepts an options object",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Runtime engine, @opentelemetry/sdk-logs",
      "display": "{\"node\": \">=22.15.0\"}",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Project function, @opentelemetry/sdk-logs",
      "display": "async shutdown(): Promise<void> {\n    await this.provider.shutdown();\n    await this.loggerProvider.shutdown();\n\n    const destroy = (this.storage as any)?.destroy;\n    if (typeof destroy === \"function\") {\n      destroy.call(this.storage);\n    }\n  }",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Project source file, @opentelemetry/sdk-logs",
      "display": "packages/core/src/observability/serverless/volt-agent-observability.ts",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Project full_name, @opentelemetry/sdk-logs",
      "display": "VoltAgent/voltagent",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Project stargazers_count, @opentelemetry/sdk-logs",
      "display": "11.0K",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Library name, pino",
      "display": "pino",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Monthly downloads, pino",
      "display": "300.7M",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "License, pino",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Package release, pino",
      "display": "10.4.0",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Package release date, pino",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Install, pino",
      "display": "npm install pino",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Quickstart, pino",
      "display": "const logger = require('pino')();\nlogger.info('hello world');\n",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Repository stars, pino",
      "display": "18.3K",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Severity levels, pino",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Built-in local JSON lines, pino",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Primary logging role, pino",
      "display": "Structured Node.js JSON logger",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Output and child context, pino",
      "display": "JSON records and child bindings",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Project function, pino",
      "display": "export const getLogger = (name = 'payload', logger?: Config['logger']): PayloadLogger => {\n  if (!logger) {\n    return pino(defaultLoggerOptions)\n  }\n\n  // Synchronous logger used by bin scripts\n  if (logger === 'sync') {\n    return pino(prettySyncLoggerDestination)\n  }\n\n  // Check if logger is an object\n  if ('options' in logger) {\n    const { destination, options } = logger\n\n    if (!options.name) {\n      options.name = name\n    }\n\n    if (!options.enabled) {\n      options.enabled = process.env.DISABLE_LOGGING !== 'true'\n    }\n\n    return pino(options, destination)\n  } else {\n    // Instantiated logger\n    return logger\n  }\n}",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Project source file, pino",
      "display": "packages/payload/src/utilities/logger.ts",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Project full_name, pino",
      "display": "payloadcms/payload",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Project stargazers_count, pino",
      "display": "45.8K",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Library name, consola",
      "display": "consola",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Monthly downloads, consola",
      "display": "260.6M",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "License, consola",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Package release, consola",
      "display": "3.4.2",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Package release date, consola",
      "display": "Mar 2025",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Install, consola",
      "display": "npm install consola",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Quickstart, consola",
      "display": "import { consola } from 'consola';\nconsola.info('hello');\n",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Official description, consola",
      "display": "Wraps the built-in console.",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Quickstart source file, consola",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Repository stars, consola",
      "display": "7.3K",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Severity levels, consola",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Built-in local JSON lines, consola",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Primary logging role, consola",
      "display": "Human-facing CLI logs with pluggable reporters",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "JSON output, consola",
      "display": "Custom reporter serializes log objects",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Runtime engine, consola",
      "display": "{\"node\": \"^14.18.0 || >=16.10.0\"}",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Project function, consola",
      "display": "async function _build(\n  rootDir: string,\n  inputConfig: BuildConfig = {},\n  buildConfig: BuildConfig,\n  pkg: PackageJson & Partial<Record<\"unbuild\" | \"build\", BuildConfig>>,\n  cleanedDirs: string[],\n  _stubMode: boolean,\n  _watchMode: boolean,\n): Promise<void> {\n  // Resolve preset\n  const preset = await resolvePreset(\n    buildConfig.preset ||\n      pkg.unbuild?.preset ||\n      pkg.build?.preset ||\n      inputConfig.preset ||\n      \"auto\",\n    rootDir,\n  );\n\n  // Merge options\n  const options = defu(\n    buildConfig,\n    pkg.unbuild || pkg.build,\n    inputConfig,\n    preset,\n    {\n      name: (pkg?.name || \"\").split(\"/\").pop() || \"default\",\n      rootDir,\n      entries: [],\n      clean: true,\n      declaration: undefined,\n      outDir: \"dist\",\n      stub: _stubMode,\n      stubOptions: {\n        /**\n         * See https://github.com/unjs/jiti#%EF%B8%8F-options\n         */\n        jiti: {\n          interopDefault: true,\n          alias: {},\n        },\n      },\n      watch: _watchMode,\n      watchOptions: _watchMode\n        ? {\n            exclude: \"node_modules/**\",\n            include: \"src/**\",\n          }\n        : undefined,\n      externals: [\n        ...Module.builtinModules,\n        ...Module.builtinModules.map((m) => \"node:\" + m),\n      ],\n      dependencies: [],\n      devDependencies: [],\n      peerDependencies: [],\n      alias: {},\n      replace: {},\n      failOnWarn: true,\n      sourcemap: false,\n      rollup: {\n        emitCJS: false,\n        watch: false,\n        cjsBridge: false,\n        inlineDependencies: false,\n        preserveDynamicImports: true,\n        output: {\n          // https://v8.dev/features/import-attributes\n          importAttributesKey: \"with\",\n        },\n        // Plugins\n        replace: {\n          preventAssignment: true,\n        },\n        alias: {},\n        resolve: {\n          preferBuiltins: true,\n        },\n        json: {\n          preferConst: true,\n        },\n        commonjs: {\n          ignoreTryCatch: true,\n        },\n        esbuild: { target: \"esnext\" },\n        dts: {\n          compilerOptions: {\n            // https://github.com/Swatinem/rollup-plugin-dts/issues/143\n            preserveSymlinks: false,\n            // https://github.com/Swatinem/rollup-plugin-dts/issues/127\n            composite: false,\n          },\n          respectExternal: true,\n        },\n      },\n      parallel: false,\n    } satisfies BuildOptions,\n  ) as BuildOptions;\n\n  // Resolve dirs relative to rootDir\n  options.outDir = resolve(options.rootDir, options.outDir);\n\n  // Create shared jiti instance for context\n  const jiti = createJiti(options.rootDir, { interopDefault: true });\n\n  // Build context\n  const ctx: BuildContext = {\n    options,\n    jiti,\n    warnings: new Set(),\n    pkg,\n    buildEntries: [],\n    usedImports: new Set(),\n    hooks: createHooks(),\n  };\n\n  // Register hooks\n  if (preset.hooks) {\n    ctx.hooks.addHooks(preset.hooks);\n  }\n  if (inputConfig.hooks) {\n    ctx.hooks.addHooks(inputConfig.hooks);\n  }\n  if (buildConfig.hooks) {\n    ctx.hooks.addHooks(buildConfig.hooks);\n  }\n\n  // Allow prepare and extending context\n  await ctx.hooks.callHook(\"build:prepare\", ctx);\n\n  // Normalize entries\n  options.entries = options.entries.map((entry) =>\n    typeof entry === \"string\" ? { input: entry } : entry,\n  );\n\n  for (const entry of options.entries) {\n    if (typeof entry.name !== \"string\") {\n      let relativeInput = isAbsolute(entry.input)\n        ? relative(rootDir, entry.input)\n        : normalize(entry.input);\n      if (relativeInput.startsWith(\"./\")) {\n        relativeInput = relativeInput.slice(2);\n      }\n      entry.name = removeExtension(relativeInput.replace(/^src\\//, \"\"));\n    }\n\n    if (!entry.input) {\n      throw new Error(\"Missing entry input: \" + dumpObject(entry));\n    }\n\n    if (!entry.builder) {\n      entry.builder = entry.input.endsWith(\"/\") ? \"mkdist\" : \"rollup\";\n    }\n\n    if (options.declaration !== undefined && entry.declaration === undefined) {\n      entry.declaration = options.declaration;\n    }\n\n    entry.input = resolve(options.rootDir, entry.input);\n    entry.outDir = resolve(options.rootDir, entry.outDir || options.outDir);\n  }\n\n  // Infer dependencies from pkg\n  options.dependencies = Object.keys(pkg.dependencies || {});\n  options.peerDependencies = Object.keys(pkg.peerDependencies || {});\n  options.devDependencies = Object.keys(pkg.devDependencies || {});\n\n  // Add all dependencies as externals\n  options.externals.push(...inferPkgExternals(pkg));\n  options.externals = [...new Set(options.externals)];\n\n  // Call build:before\n  await ctx.hooks.callHook(\"build:before\", ctx);\n\n  // Start info\n  consola.info(\n    colors.cyan(`${options.stub ? \"Stubbing\" : \"Building\"} ${options.name}`),\n  );\n  if (process.env.DEBUG) {\n    consola.info(`${colors.bold(\"Root dir:\")} ${options.rootDir}\n  ${colors.bold(\"Entries:\")}\n  ${options.entries.map((entry) => \"  \" + dumpObject(entry)).join(\"\\n  \")}\n`);\n  }\n\n  // Clean dist dirs\n  if (options.clean) {\n    for (const dir of new Set(\n      options.entries\n        .map((e) => e.outDir)\n        .filter((p): p is NonNullable<typeof p> => !!p)\n        .sort(),\n    )) {\n      if (\n        dir === options.rootDir ||\n        options.rootDir.startsWith(withTrailingSlash(dir)) ||\n        cleanedDirs.some((c) => dir.startsWith(c))\n      ) {\n        continue;\n      }\n      cleanedDirs.push(dir);\n      consola.info(\n        `Cleaning dist directory: \\`./${relative(process.cwd(), dir)}\\``,\n      );\n      await rmdir(dir);\n      await fsp.mkdir(dir, { recursive: true });\n    }\n  }\n\n  // Try to selflink\n  // if (ctx.stub && ctx.pkg.name) {\n  //   const nodemodulesDir = resolve(ctx.rootDir, 'node_modules', ctx.pkg.name)\n  //   await symlink(resolve(ctx.rootDir), nodemodulesDir).catch(() => {})\n  // }\n\n  const buildTasks = [\n    typesBuild, // untyped\n    mkdistBuild, // mkdist\n    rollupBuild, // rollup\n    copyBuild, // copy\n  ] as const;\n\n  if (options.parallel) {\n    await Promise.all(buildTasks.map((task) => task(ctx)));\n  } else {\n    for (const task of buildTasks) {\n      await task(ctx);\n    }\n  }\n\n  // Skip rest for stub and watch mode\n  if (options.stub || options.watch) {\n    await ctx.hooks.callHook(\"build:done\", ctx);\n    return;\n  }\n\n  // Done info\n  consola.success(colors.green(\"Build succeeded for \" + options.name));\n\n  // Find all dist files and add missing entries as chunks\n  const outFiles = await glob([\"**\"], { cwd: options.outDir });\n  for (const file of outFiles) {\n    let entry = ctx.buildEntries.find((e) => e.path === file);\n    if (!entry) {\n      entry = {\n        path: file,\n        chunk: true,\n      };\n      ctx.buildEntries.push(entry);\n    }\n    if (!entry.bytes) {\n      const stat = await fsp.stat(resolve(options.outDir, file));\n      entry.bytes = stat.size;\n    }\n  }\n\n  const rPath = (p: string): string =>\n    relative(process.cwd(), resolve(options.outDir, p));\n  for (const entry of ctx.buildEntries.filter((e) => !e.chunk)) {\n    let totalBytes = entry.bytes || 0;\n    for (const chunk of entry.chunks || []) {\n      totalBytes += ctx.buildEntries.find((e) => e.path === chunk)?.bytes || 0;\n    }\n    let line =\n      `  ${colors.bold(rPath(entry.path))} (` +\n      [\n        totalBytes && `total size: ${colors.cyan(prettyBytes(totalBytes))}`,\n        entry.bytes && `chunk size: ${colors.cyan(prettyBytes(entry.bytes))}`,\n        entry.exports?.length &&\n          `exports: ${colors.gray(entry.exports.join(\", \"))}`,\n      ]\n        .filter(Boolean)\n        .join(\", \") +\n      \")\";\n    if (entry.chunks?.length) {\n      line +=\n        \"\\n\" +\n        entry.chunks\n          .map((p) => {\n            const chunk =\n              ctx.buildEntries.find((e) => e.path === p) || ({} as any);\n            return colors.gray(\n              \"  └─ \" +\n                rPath(p) +\n                colors.bold(\n                  chunk.bytes ? ` (${prettyBytes(chunk?.bytes)})` : \"\",\n                ),\n            );\n          })\n          .join(\"\\n\");\n    }\n    if (entry.modules?.length) {\n      line +=\n        \"\\n\" +\n        entry.modules\n          .filter((m) => m.id.includes(\"node_modules\"))\n          .sort((a, b) => (b.bytes || 0) - (a.bytes || 0))\n          .map((m) => {\n            return colors.gray(\n              \"  📦 \" +\n                rPath(m.id) +\n                colors.bold(m.bytes ? ` (${prettyBytes(m.bytes)})` : \"\"),\n            );\n          })\n          .join(\"\\n\");\n    }\n    consola.log(entry.chunk ? colors.gray(line) : line);\n  }\n  console.log(\n    \"Σ Total dist size (byte size):\",\n    colors.cyan(\n      prettyBytes(ctx.buildEntries.reduce((a, e) => a + (e.bytes || 0), 0)),\n    ),\n  );\n\n  // Validate\n  validateDependencies(ctx);\n  validatePackage(pkg, rootDir, ctx);\n\n  // Call build:done\n  await ctx.hooks.callHook(\"build:done\", ctx);\n\n  consola.log(\"\");\n\n  if (ctx.warnings.size > 0) {\n    consola.warn(\n      \"Build is done with some warnings:\\n\\n\" +\n        [...ctx.warnings].map((msg) => \"- \" + msg).join(\"\\n\"),\n    );\n    if (ctx.options.failOnWarn) {\n      consola.error(\n        \"Exiting with code (1). You can change this behavior by setting `failOnWarn: false` .\",\n      );\n      // eslint-disable-next-line unicorn/no-process-exit\n      process.exit(1);\n    }\n  }\n}",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Project source file, consola",
      "display": "src/build.ts",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Project full_name, consola",
      "display": "unjs/unbuild",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Project stargazers_count, consola",
      "display": "2.7K",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Library name, @sentry/node",
      "display": "Sentry Node SDK",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Monthly downloads, @sentry/node",
      "display": "217.2M",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "License, @sentry/node",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Package release, @sentry/node",
      "display": "11.14.0",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Package release date, @sentry/node",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Install, @sentry/node",
      "display": "npm install @sentry/node",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Quickstart, @sentry/node",
      "display": "import * as Sentry from '@sentry/node';\nSentry.init({ dsn: process.env.SENTRY_DSN });\nSentry.logger.info('hello');\n",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Official description, @sentry/node",
      "display": "Provides the Sentry SDK for Node.js, with OpenTelemetry for performance instrumentation.",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Quickstart source file, @sentry/node",
      "display": "v10-to-v11 migration and current Node/Core API",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Repository stars, @sentry/node",
      "display": "8.8K",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Severity levels, @sentry/node",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Built-in local JSON lines, @sentry/node",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Primary logging role, @sentry/node",
      "display": "Managed telemetry log pipeline",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Log capture, @sentry/node",
      "display": "Logger methods or logging integrations capture records without an enableLogs flag",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Runtime engine, @sentry/node",
      "display": "{\"node\": \">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0\"}",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Library name, winston",
      "display": "winston",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Monthly downloads, winston",
      "display": "141.2M",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "License, winston",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Package release, winston",
      "display": "3.19.0",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Package release date, winston",
      "display": "Dec 2025",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Install, winston",
      "display": "npm install winston",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Quickstart, winston",
      "display": "const winston = require('winston');\nconst logger = winston.createLogger({\n  format: winston.format.json(),\n  transports: [new winston.transports.Console()],\n});\nlogger.info('hello');\n",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Repository stars, winston",
      "display": "24.5K",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Severity levels, winston",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Built-in local JSON lines, winston",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Primary logging role, winston",
      "display": "Logger with independent formats and multiple transports",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Routing, winston",
      "display": "Per-transport logging levels and formats",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Library name, loglevel",
      "display": "loglevel",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Monthly downloads, loglevel",
      "display": "126.9M",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "License, loglevel",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Package release, loglevel",
      "display": "1.9.2",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Package release date, loglevel",
      "display": "Sep 2024",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Install, loglevel",
      "display": "npm install loglevel",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Quickstart, loglevel",
      "display": "const log = require('loglevel');\nlog.setLevel('info');\nlog.info('hello');\n",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Official description, loglevel",
      "display": "Adds log level methods to the available console.log methods.",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Quickstart source file, loglevel",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Repository stars, loglevel",
      "display": "2.7K",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Severity levels, loglevel",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Built-in local JSON lines, loglevel",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Primary logging role, loglevel",
      "display": "Console-method logger with severity filtering",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Named logger lifecycle, loglevel",
      "display": "Named loggers, methodFactory overrides, and rebuild",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Project function, loglevel",
      "display": "function getPrefixedLogger(prefix?: string): PrefixedLogger {\n    const loggerName = DEFAULT_NAMESPACE + (prefix === undefined ? \"\" : `-${prefix}`);\n    const prefixLogger = loglevel.getLogger(loggerName) as PrefixedLogger;\n\n    if (prefixLogger.getChild === undefined) {\n        // This is a new loglevel Logger which has not been turned into a PrefixedLogger yet.\n        prefixLogger.prefix = prefix;\n        prefixLogger.getChild = (childPrefix): Logger => {\n            // create the new child logger\n            const childLogger = getPrefixedLogger((prefix ?? \"\") + childPrefix);\n            // Assign the methodFactory from the parent logger.\n            // This is useful if we add extensions to the parent logger that modifies\n            // its methodFactory. (An example extension is: storing each log to a rageshake db)\n            childLogger.methodFactory = prefixLogger.methodFactory;\n            // Rebuild the child logger with the new methodFactory.\n            childLogger.rebuild();\n            return childLogger;\n        };\n        prefixLogger.setLevel(loglevel.levels.DEBUG, false);\n    }\n\n    return prefixLogger;\n}",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Project source file, loglevel",
      "display": "src/logger.ts",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Project full_name, loglevel",
      "display": "matrix-org/matrix-js-sdk",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Project stargazers_count, loglevel",
      "display": "2.2K",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "JavaScript Node logging libraries Pino Winston Bunyan Log4js JSON child loggers transports redaction code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
