This template contains a text based logging function.
By default the log file is placed beside the calling script, but you can also specify a log file with the -log script parameter.