Added function to get a log level from a case-insensitive string

use std::tolower on the input string and then compare using operator== http://www.cplusplus.com/reference/locale/tolower/