• Uses AOP to automatically log method entry/exit with arguments to the netsuite execution log. Call this method at the end of your script. Log entries are 'DEBUG' level by default but may be overridden as described below.

    Parameters

    • methodsToLogEntryExit: {
          method: string | RegExp;
          target: Object;
      }

      array of pointcuts

      • method: string | RegExp
      • target: Object
    • Optionalconfig: AutoLogConfig

      configuration settings

    Returns any

    an array of jquery aop advices

    namespace X {
    export onRequest() {
    log.debug('hello world')
    }
    }
    LogManager.autoLogMethodEntryExit({ target:X, method:/\w+/})

    The above results in automatic log entries similar to:

    Log Title Detail
    Enter onRequest() args:[]
    hello world
    Exit onRequest() returned: undefined