initialise_log function

Initialise a log file