import * as vscode from 'vscode' ; export class Logger { private channel : vscode . OutputChannel ; constructor ( name ) { this . channel = vscode . window . createOutputChannel ( name ) ; } public log ( message , end = '\n' ) { this . channel . append ( `${ message }${ end }` ) ; } } let logger ; export function getLogger ( ) { if ( ! logger ) { logger = new Logger ( 'Remote X11' ) ; } return logger ; }