Log

The Log function is part of the Trigger class.

The function takes one parameter - a string with the message you want to record to the log.

Note that the date and time is automatically added to the line - there's no need to add this yourself.