moleculerjs / moleculer-web

:earth_africa: Official API Gateway service for Moleculer framework
http://moleculer.services/docs/moleculer-web.html
MIT License
291 stars 118 forks source link

Enhancements to Logs #204

Closed erlichmen closed 1 year ago

erlichmen commented 4 years ago

We notice that In v0.10 you can control the log level the request/response will be logged which is a nice addition. I would like to suggest to be able to control the log level of the request/response also PER route level. When working with health checks we define a route that is hammered every 5 seconds and that creates unnecessary logs noise.

Also, it would be nice if the color output will also be turned off by demanded as not all of the log output support TTY.

PR Welcomed?

intech commented 4 years ago

@erlichmen disabling color logs is available in moleculer configuration.

There are currently no settings for flexible configuration of logging in the moleculer-web.

PR Welcomed?

Always welcome! I think we should look at an example of the implementation of the log level settings

icebob commented 4 years ago

@erlichmen yeah, good idea. PR's welcomed. As @intech said, you can disable colors in broker option logger settings.