write_plain now supports array and '\r\n' line ended strings
fixed regression in logger