rewrite log processor