Issue #1955; change loglevel through environment variable
fixes #1955; added a function init_from_env
fixes #1955; minor change
Merge pull request #1965 from dhruv13J/develop

Issue #1955; change loglevel through environment variable