drop global var for logging
Drop string formatting in logging
Let logging handle formatting only if needed
Merge pull request #4 from blatinier/logging-improvement

Improve logging management