added line wrapping to log window, autoformat