This is a basic logging function after I learned python logging.

The function will do:

    1. create a log file
    1. log the start info
    1. log the trigger info
    1. log the end info

All these info will attached a timestamp.