corvus-ch / rabbitmq-cli-consumer

Consume RabbitMQ messages into any cli program
MIT License
236 stars 37 forks source link

Implement log level #58

Open estahn opened 5 years ago

estahn commented 5 years ago

There are no log files within a container environment and everything is directed to either stdin or stdout. This can be achieved via --verbose.

The --verbose flag generates too many irrelevant logs specifically problematic if an external log provider (e.g. Sumologic, loggly) is used. This leads to increased cost for no apparent reason.

A log level should be implemented to reduce the logs to a minimum, e.g. debug, info, warning, error, etc.

Message processing details such as p.log.Info("Processing message...") should be moved to debug level.

corvus-ch commented 5 years ago

I have started working on a new major version. For this new version, I have planned to refactor logging completely. This includes: