Add method setLogLevel() to set verbosity of the log. Modify log() accordingly.