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

example on how it is used as a Stream? #14

Open
karlo-humanmanaged opened this issue Aug 7, 2023 · 5 comments
Open

example on how it is used as a Stream? #14

karlo-humanmanaged opened this issue Aug 7, 2023 · 5 comments

Comments

@karlo-humanmanaged
Copy link

No description provided.

@Vunovati
Copy link
Collaborator

Hello @karlo-humanmanaged, can you add some more context? What's your exact use case?

@karlo-humanmanaged
Copy link
Author

What I'm trying to do is to programmatically reference the plugin. When I say stream, I'm comparing it to how pino-pretty can be used as such. Pino-pretty has an example here:
https://github.com/pinojs/pino-pretty#programmatic-integration

@Vunovati
Copy link
Collaborator

What I'm trying to do is to programmatically reference the plugin. When I say stream, I'm comparing it to how pino-pretty can be used as such. Pino-pretty has an example here:
https://github.com/pinojs/pino-pretty#programmatic-integration

Got it. Thanks for the explanation.

This use case was not considered in the making of this plugin. Can you explain your use case, why can't you use this transport the way it was documented in Readme?

@karlo-humanmanaged
Copy link
Author

I actually tried it but when I used it in a project in my monorepo (pnpm workspaces) then reference it in a nextjs application , it seems that the webpack is not including it... and with the short amount of time that I spent on it, my guess is because it didn't have a programmatic reference to it. I have encountered the same issue with pino-pretty, but I was able to make it work by using it with programmatic reference

@Vunovati
Copy link
Collaborator

Thanks. Can you post a snippet of how you are using the package? If you look at the examples there are only programmatic references.

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

No branches or pull requests

2 participants