-
Notifications
You must be signed in to change notification settings - Fork 885
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
pino.multistream is not a function #1552
Comments
Thanks for reporting! Can you provide steps to reproduce? We often need a reproducible example, e.g. some code that allows someone else to recreate your problem by just copying and pasting it. If it involves more than a couple of different file, create a new repository on GitHub and add a link to that. |
Hi,
|
The following code runs fine on my system: import pino from 'pino'
console.log(pino.multistream) |
Hi, Thanks. Below is my code. I would like to add/remove fields in content writing into file. Any suggestion would be appreciated.
|
Not tested, but it should works according to the code const prettyOption = { colorize: true, sync: true, messageFormat: `{"job_name":${job_name}, "message":${msg}}` }
const streams = [
// file
{ stream: pretty({ ...prettyOption, destination: 'logfilePath' }) },
// stdout
{ stream: pretty(prettyOption) }
] |
Thanks @climba03003 . Do you have any suggestion on how to include/exclude specific fields.
Below is the code I am using:
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I am not able to use pino.multistream in my nodejs/typescript project though I am using the latest version of Pino package (8.5.0). I am getting the error - pino.multistream is not a function. Also, when I hover over pino.multistream, I get a pop-up saying "Property 'multistream' does not exist on type 'typeof P'." Can someone please suggest.
Below is my code
import pino from 'pino'
pino.multistream() --> doesnt work.
However, I am getting following suggestion when I do pino. (dot) Not sure why only multistream doesnt work.
LOG_VERSION
default
destination
extreme
final
levels
stdSerializers
stdTimeFunctions
symbols
version
The text was updated successfully, but these errors were encountered: