dwyl / hapi-typescript-example

:zap: Hapi.Js + Typescript = Awesomeness
MIT License
354 stars 104 forks source link

logger add config #5

Closed rbonillajr closed 7 years ago

rbonillajr commented 7 years ago

hi for good-console add this code and install package good-squeeze

file logger/index

const opts = {
                ops: {
                    interval: 1000
                },
                reporters: {
                    consoleReporter: [{
                        module: 'good-squeeze',
                        name: 'Squeeze',
                        args: [{ error: '*', log: '*', response: '*', request: '*' }]
                    }, {
                        module: 'good-console'
                    }, 'stdout']
                }
            };
Talento90 commented 7 years ago

@rbonillajr Thanks, I will fix this soon! 👍

Talento90 commented 7 years ago

Fixed! Now you can see the logs in the stdout :)

Thanks a lot 👍