const createLogger = ( ) => { let enabled = false ; const configure = ( { isEnabled } ) => { enabled = isEnabled ; } ; const log = ( namespace , ... args ) => { if ( enabled ) { console . log ( `[AcceptNano-${ namespace }]` , ... args ) ; } } ; return { configure , log } ; } ; export const logger = createLogger ( ) ;