This is a basic logging function after I learned python logging. The function will do: create a log file log the start info log the trigger info log the end info All these info will attached a timestamp.