green-fox-academy / hotel-booking-user-service

0 stars 0 forks source link

Configurable logging levels #11

Open vvarro opened 7 years ago

vvarro commented 7 years ago

Configurable logging levels

The log levels should be configurable by an environment variable. If the called methods priority is the same or higher than the stored log level, then it should log the message otherwise it should not. So it for example it should log a warn level message if the environment variable is set to info, but it should not log anything if the message level is info and the variable is set to error. The default log level should be info if the environment variable is not present.

vvarro commented 7 years ago

Estimation: 2