Import mod_post_log from 2.1.x branch