Log watching helper script