import { OutputChannel } from 'vscode' ; import { ILogger , LogLevel } from '../common/logger' ; export class ChannelLogger implements ILogger { private minLogLevel : LogLevel = LogLevel . Log ; private channel : OutputChannel ; constructor ( channel ) { this . channel = channel ; } public log ( msg , level = LogLevel . Log ) { if ( level >= this . minLogLevel ) { this . channel . appendLine ( msg ) ; } } }