Fix for newlines being outputted in the log even if the message being logged is below the current config.log_level

When log level is at error, a new line was being logged for every info logger message. Ref #146