fixed newlines for logger