-
Notifications
You must be signed in to change notification settings - Fork 61
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
prettyPrint is deprecated #147
Comments
This is not an error but a warning. Follow the instructions at https://github.com/pinojs/pino-pretty to remove it. |
Once you figure it out, would you like to send us a PR to update our docs? |
Well, actually localhost crashed. 😅
Sure, I just changed prettyPrint option to false. However, I'd like to have the pretty print available. How can I use/configure pino transport/stream globally? |
This seems to work (taken from PR). Needs latest await server.register({
plugin: HapiPino,
options: {
// Redact Authorization headers, see https://getpino.io/#/docs/redaction
redact: ["req.headers.authorization"],
transport: {
target: "pino-pretty",
options: {
colorize: true,
minimumLevel: "info",
levelFirst: true,
messageFormat: true,
timestampKey: "time",
translateTime: true,
singleLine: false,
mkdir: true,
append: true,
},
},
},
}); |
Would you like to send a Pull Request to address this issue? |
Project throws an error after update to 9.0.0.
The text was updated successfully, but these errors were encountered: