Minor improvements
Do not create the log message if the log level is not enabled
Merge pull request #3 from martin-g/minor-improvements

Minor improvements