Code commit

Extended the Log function to take a LogType argument