Added class that allows to temporarily switch log post type on redirected console output.