Generalize HSIT log initialization

Share log file initialization code between HSIT master and slave