Major rewrite of log consumer.