add timestamping to log entries

create a ``timestamp`` function that is used inside ``cron`` to
timestamp each log entry before it is written to the log file.