Wizcorp / node-graylog2

Graylog2 client library for Node.js
Other
59 stars 36 forks source link

Is it possible to configure what levels get logged? #29

Open betweenbrain opened 7 years ago

betweenbrain commented 7 years ago

In looking at https://github.com/Wizcorp/node-graylog2/blob/master/graylog.js, I don't think this is implemented, but I wanted to confirm for sure that there isn't a built-in way to pass a configuration property to set the minimal level to log. The idea is that you can code all of the various logging events, and their respective levels, in your application, and then set what level(s) get sent off to Graylog in your configuration.

ronkorving commented 6 years ago

Such a feature has indeed not been implemented. I don't think it necessarily belongs in node-graylog2 though. It may be better off staying in user-land, so that if you switch logging services, you would retain that configurability. Thoughts?