file logger, logged messages are missing new line character