Rewrite ws_log() To always appending a newline char