Updated to work with log levels

Updated the code to work with the new log levels or the library.