Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When there is an official solution for pino to GCP logging, use that instead of own fix #344

Open
haphut opened this issue Sep 2, 2023 · 1 comment

Comments

@haphut
Copy link
Contributor

haphut commented Sep 2, 2023

A currently open issue for Google: googleapis/nodejs-logging#875 Google provides libraries for logging into GCP using bunyan (https://github.com/googleapis/nodejs-logging-bunyan) or winston but not yet for pino. It seems that e.g. logging objects is not as easy as just changing pino levels to GCP severity.

Either Google provides a library for pino (best case), pino builds more internal tooling for GCP or we will keep using our workaround.

(Original issue for pino: pinojs/pino#726)

(There also exists https://github.com/guillenotfound/pino-gcp-logger but it is not the cleanest TypeScript, it's made by one individual, looks unmaintained (but should probably not need maintenance) and is one more dependency for one-file solution.)

@haphut haphut converted this from a draft issue Sep 2, 2023
@bkw
Copy link

bkw commented Dec 18, 2024

You may want to have a look at @google-cloud/pino-logging-gcp-config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

2 participants