Update lhlog.php

Now writes only one entry each time it is called. Previously each call added an additional line of the entry being written during that session. e.g. the tenth time the log is written there would be 10 duplicate entries.