import { Logger } from '@boostercloud/framework-types' ; export const scopeLogger = ( scope , logger ) : Logger => { const newLogger = { ... logger } ; newLogger . debug = ( ... args ) => logger . debug ( [ `[${ scope }]` , ... args ] . join ( ' ' ) ) ; newLogger . info = ( ... args ) => logger . info ( [ `[${ scope }]` , ... args ] . join ( ' ' ) ) ; newLogger . error = ( ... args ) => logger . error ( [ `[${ scope }]` , ... args ] . join ( ' ' ) ) ; return newLogger ; } ;