modified logActivityStart()