JKHeadley / rest-hapi

🚀 A RESTful API generator for Node.js
https://resthapi.com
MIT License
1.19k stars 153 forks source link

Logging Module #152

Open JKHeadley opened 6 years ago

JKHeadley commented 6 years ago

Is your feature request related to a problem? Please describe. Logging should be more flexible and ideally the developer should be able to choose which logging module to implement.

Describe the solution you'd like Support a generic logging module that provides default functionality (through a supported third part logging module), but also allows the dev to plugin their logging module of choice.

See: https://github.com/JKHeadley/rest-hapi/issues/150

mkg20001 commented 6 years ago

I just found this: https://github.com/pinojs/hapi-pino#usage screenshot

Apparently there is already a standard way of logging in hapi

JKHeadley commented 6 years ago

hapi-pino looks like a solid option for sure. Need to look into the features for the hapi logger. Nice find!