Added LOGGER function, and a header to the $LOG file