extensions/typescript-language-features/web/webServer.ts/getLogLevel
function getLogLevel(level: string | undefined) {
	if (level) {
		const l = level.toLowerCase();
		for (const name in ts.server.LogLevel) {
			if (isNaN(+name) && l === name.toLowerCase()) {
				return ts.server.LogLevel[name] as any as ts.server.LogLevel;
			}
		}
	}
	return undefined;
}