Skip to content

avanelli/fastify-cli-pino-pretty-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pino-Pretty custom configuration in Fastify-CLI

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.

Installation

run npm install

Usage

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

Configuration

Edit custom_logger.js to modify Pino-Pretty configuration.

About

Pino-Pretty custom configuration in Fastify-CLI example

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published