pino-cloud-js:Pino集成,用于Google Stackdriver等云记录服务

时间:2024-02-29 18:29:15
【文件属性】:

文件名称:pino-cloud-js:Pino集成,用于Google Stackdriver等云记录服务

文件大小:109KB

文件格式:ZIP

更新时间:2024-02-29 18:29:15

pino stackdriver TypeScript

@ relaycorp / pino-cloud 该库生成配置,以格式化日志条目的方式使云日志记录服务(如Google Cloud Platform(GCP)上的日志记录服务)可以正确提取日志条目。 目前,仅支持GCP的Cloud Logging和Error Reporting服务,但我们欢迎任何PR支持其他目标,例如Elastic Search或AWS CloudWatch Logs。 安装 版本会自动推送到 。 例如,要获取最新版本,请运行: npm install @relaycorp/pino-cloud 用法 该库仅返回Pino的配置对象,您可以在传递给Pino之前对其进行扩充。 例如: import { getPinoOptions } from '@relaycorp/pino-cloud' ; const LOGGER = pino ( { ... getPin


【文件预览】:
pino-cloud-js-main
----.dependabot()
--------config.yml(155B)
----.github()
--------workflows()
----.kodiak.toml(210B)
----.prettierignore(82B)
----src()
--------index.ts(78B)
--------lib()
--------types()
----.npmignore(95B)
----typedoc.json(110B)
----tsconfig.json(224B)
----LICENSE(1KB)
----jest.config.js(6KB)
----tslint.json(58B)
----README.md(2KB)
----jest.config.ci.js(234B)
----tsconfig.module.json(177B)
----.editorconfig(258B)
----.gitignore(38B)
----.releaserc.yml(53B)
----package-lock.json(455KB)
----package.json(2KB)

网友评论