Changed die() statements to custom exceptions and added a new constructor option.

I added a custom Exception class **LogException** and replaced the class's die() statements with LogException throws.

I also added a third parameter to the constructor that allows the user to change the timestamp format.

(I also combined the public/const keywords for the class properties/constants.)