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.
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.