Enabled printf style logging.
changed \n to std::endl to make sure logs are flushed on each write.