Made class Log extensible by allowing the user to register new message types by using the class LogType