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

remove vertical whitespace