Simplify by using stdlib's logger
Optimize logging by computing messages only if it is helpful
Merge pull request #37 from marcandre/optimize_logger

Optimize logger