import assert from "node:assert" ; export default class Output { constructor ( public enableVerboseOutput ) { assert . strictEqual ( arguments . length , 1 ) ; assert ( typeof this . enableVerboseOutput === "boolean" ) ; } normal ( ... args ) { this . consoleLog ( ... args ) ; } error ( ... args ) { this . consoleError ( ... args ) ; } warning ( ... args ) { this . consoleWarn ( ... args ) ; } verbose ( ... args ) { if ( ! this . enableVerboseOutput ) { return undefined ; } this . consoleError ( ... args ) ; } private consoleLog ( ... args ) { console . log ( ... args ) ; } private consoleError ( ... args ) { console . error ( ... args ) ; } private consoleWarn ( ... args ) { console . warn ( ... args ) ; } }