Add filter to logging