Improve logging logic in `salt/template.py`. Allow the test suite to set more logging levels.
Merge pull request #4626 from s0undt3ch/develop

Improve logging logic in `salt/template.py`. Allow the test suite to set/handle more logging levels