src/vs/workbench/contrib/terminal/browser/terminalInstance.ts/TerminalInstance/toggleEscapeSequenceLogging
class TerminalInstance:	async toggleEscapeSequenceLogging(): Promise<void> {
		const xterm = await this._xtermReadyPromise;
		const isDebug = xterm.getOption('logLevel') === 'debug';
		xterm.setOption('logLevel', isDebug ? 'info' : 'debug');
	}