Move over more filter behaviour from logging controller (#8026)

This PR consists of copying and pasting handlers from logging controller, as well as moving functions around so that logging_model's order is similar to logging_controller. This makes diffing the two easier to make sure that functionality has remained similar.