Created a Log file: Assignment

I was tasked with creating a log file and a log class. This is my
version which was fairly close to the instructors. I did however, miss a
few key points. For example I thought the $action was for the fopen with
appends to a file. Instead, he used $action for the function to make it
more modular. Also, when showing the logs, I added the if get[clear]
into the function. It makes way more sense to have it out. Also, he
added the time, action and message on one line which also makes more
sense.