if log is not ended with linebreak then add it