Sample demonstration how to configure Pino-Pretty in Fastify-cli using --logging-module
This example is for demonstration only, don't use it in production.
run npm install
run
fastify start --pretty-logs --logging-module="./custom_logger.js" --log-level=info plugin.js
visit http://localhost:3000/
you will see logs in your terminal following custom configuration
Edit custom_logger.js
to modify Pino-Pretty configuration.