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

where? Sorry, cannot figure out which line this comment belongs to.