Changed the logging to use the formatter. That way I don't pay the String concatenation cost if I'm not interested in the log message.
Merge pull request #9 from bramp/log-formatter

Changed the logging to use the formatter.