import { LogLevelType } from "jslib-common/enums/logLevelType" ; import { ConsoleLogService as BaseConsoleLogService } from "jslib-common/services/consoleLog.service" ; export class ConsoleLogService extends BaseConsoleLogService { constructor ( isDev , filter = null ) { super ( isDev , filter ) ; } write ( level , message ) { if ( this . filter != null && this . filter ( level ) ) { return ; } if ( process . env . BW_RESPONSE === "true" ) { console . error ( message ) ; return ; } super . write ( level , message ) ; } }