-
Notifications
You must be signed in to change notification settings - Fork 893
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
Deprecate prettyPrint: true #1106
Comments
I'd prefer to fully deprecate it from Pino. Let people pass in a transport or whatever that does it. I'd also like to keep |
Hi guys, I am willing to work on this. Just to be clear, the intention of this is
is that correct? Do we want to show a warning when passing |
I have some code prepared for this, wait until I upload it (might take a few days). |
For those bumping into the deprecation message and finding this issue, the solution is something like the following: const transport = pino.transport({
target: 'pino-pretty',
options: { colorize: true }
})
const logger = pino({ level: env.LOG_LEVEL }, transport) Note that transport is governed by the log level in the main options. If you only add the transport, you are restricted to the default log level (which is "info"). |
Hi, I am using streams. What should I do to remove the deprecation message?
|
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. |
We had too many folks complaining about how we load pino-pretty with yarn 2/3 and similar. I think we should either
The text was updated successfully, but these errors were encountered: