Add a log class to log error, info, debug and warn and store it in a text file