Gloucestershire closed Day 3 on 41/2, a lead of 67, in the Specsavers County Championship fixture at Bristol as Glamorgan were bowled out for 287.
Dan Douthwaite (23) and Graham Wagg (33) helped marshal the tail before late wickets for Hogan and Douthwaite gave Glamorgan a couple of breakthroughs in the evening session.
"It was a weird one for me and Waggy (batting cautiously)," said Douthwaite. "It's something we're not necessarily used to but the message from the changing-room was the longer we could stick around, the better.
"Unfortunately we couldn't do it all day, but it was a blessing in disguise because we could come out and take two wickets.
"Things are slowly and surely coming together with my bowling. I'm starting to find my confidence and rhythm again, as I haven't done much since (a four-wicket haul at) Derby.
"It's definitely exciting for both teams who'll turn up and believe they can walk away with the points, all we can do is back ourselves to bowl them out as quickly as we can and chase them down as we did at Derby."