process log and rewrite output

View thread