MatterhornDev / matterhorn

An API boilerplate project built with Node.js and TypeScript
https://matterhorn.dev
MIT License
250 stars 27 forks source link

Does it make sense to include Logger Rotation #24

Open panbhatt opened 5 years ago

panbhatt commented 5 years ago

Since Fastify uses PINO by default, does it make sense to enable the functionality of passing the logs from PINO to WINSTON and then using WINSTON we do the logging including file rotation and size rotation. (This would be optional of course, based upon the config parameters.).

Ethan-Arrowood commented 5 years ago

In the future we will want to support any logger the user wants to use; however, I believe that this feature will be incorporated in to the matterhorn-cli when the user is initializing the project.