setLogLevel function

Sets the log level of the framework