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

dead code?